File tree Expand file tree Collapse file tree 8 files changed +12
-12
lines changed
Expand file tree Collapse file tree 8 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 33 url = https://git.torproject.org/translation.git
44 branch = https_everywhere
55
6- [submodule "https-everywhere- lib "]
7- path = https-everywhere- lib
8- url = https://github.com/EFForg/https-everywhere-lib.git
6+ [submodule "lib-wasm "]
7+ path = lib-wasm
8+ url = https://github.com/EFForg/https-everywhere-lib-wasm .git
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ RuleSets.prototype = {
222222 this . store = store ;
223223 this . ruleActiveStates = await this . store . get_promise ( 'ruleActiveStates' , { } ) ;
224224 try {
225- this . wasm_rs = wasm . RuleSets . new ( ) ;
225+ this . wasm_rs = wasm . JsRuleSets . new ( ) ;
226226 } catch ( e ) {
227227 util . log ( util . WARN , 'Falling back to pure JS implementation: ' + e ) ;
228228 }
Original file line number Diff line number Diff line change 33( function ( exports ) {
44
55const util = require ( './util' ) ,
6- { RuleSets } = wasm_bindgen ;
6+ { JsRuleSets } = wasm_bindgen ;
77
88async function initialize ( ) {
99 try {
10- await wasm_bindgen ( chrome . runtime . getURL ( 'wasm/https_everywhere_lib_bg .wasm' ) ) ;
10+ await wasm_bindgen ( chrome . runtime . getURL ( 'wasm/https_everywhere_lib_wasm_bg .wasm' ) ) ;
1111 } catch ( e ) {
1212 util . log ( util . WARN , 'The wasm library has not loaded correctly: ' + e ) ;
1313 }
@@ -19,7 +19,7 @@ function is_enabled() {
1919
2020Object . assign ( exports , {
2121 initialize,
22- RuleSets ,
22+ JsRuleSets ,
2323 is_enabled,
2424} ) ;
2525
Original file line number Diff line number Diff line change 1111 "scripts" : [
1212 " background-scripts/bootstrap.js" ,
1313 " background-scripts/util.js" ,
14- " wasm/https_everywhere_lib .js" ,
14+ " wasm/https_everywhere_lib_wasm .js" ,
1515 " background-scripts/wasm.js" ,
1616 " background-scripts/update_channels.js" ,
1717 " background-scripts/update.js" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const text_encoding = require('text-encoding');
44global . TextDecoder = text_encoding . TextDecoder ;
55global . TextEncoder = text_encoding . TextEncoder ;
66global . self = global ;
7- require ( "../../https-everywhere- lib/pkg/https_everywhere_lib .js" ) ;
7+ require ( "../../lib-wasm /pkg/https_everywhere_lib_wasm .js" ) ;
88
99const assert = require ( 'chai' ) . assert ,
1010 rules = require ( '../background-scripts/rules' ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ do_not_ship="*.py *.xml"
110110rm -f $do_not_ship
111111
112112mkdir wasm
113- cp ../../https-everywhere- lib/pkg/* .wasm wasm
114- cp ../../https-everywhere- lib/pkg/* .js wasm
113+ cp ../../lib-wasm /pkg/* .wasm wasm
114+ cp ../../lib-wasm /pkg/* .js wasm
115115
116116cd ../..
117117
You can’t perform that action at this time.
0 commit comments