diff options
Diffstat (limited to 'data/extensions/https-everywhere@eff.org/background-scripts/wasm.js')
-rw-r--r-- | data/extensions/https-everywhere@eff.org/background-scripts/wasm.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/data/extensions/https-everywhere@eff.org/background-scripts/wasm.js b/data/extensions/https-everywhere@eff.org/background-scripts/wasm.js new file mode 100644 index 0000000..3385bb7 --- /dev/null +++ b/data/extensions/https-everywhere@eff.org/background-scripts/wasm.js @@ -0,0 +1,26 @@ +"use strict"; + +(function(exports) { + +const util = require('./util'), + { RuleSets } = wasm_bindgen; + +async function initialize() { + try { + await wasm_bindgen(chrome.runtime.getURL('wasm/https_everywhere_lib_wasm_bg.wasm')); + } catch(e) { + util.log(util.WARN, 'The wasm library has not loaded correctly: ' + e); + } +} + +function is_enabled() { + return true; +} + +Object.assign(exports, { + initialize, + RuleSets, + is_enabled, +}); + +})(typeof exports == 'undefined' ? require.scopes.wasm = {} : exports); |