From 61dd7225c7b6a2bb9346c76926b5e96264f831b8 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 8 Apr 2020 21:52:58 -0400 Subject: Update HTTPS Everywhere to 2020.3.16. --- .../background-scripts/wasm.js | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 data/extensions/https-everywhere@eff.org/background-scripts/wasm.js (limited to 'data/extensions/https-everywhere@eff.org/background-scripts/wasm.js') 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); -- cgit v1.2.3