ipprotection-customelements.js (597B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 { 8 const CONTENT_TAG = "ipprotection-content"; 9 10 for (let [tag, script] of [ 11 [ 12 CONTENT_TAG, 13 "chrome://browser/content/ipprotection/ipprotection-content.mjs", 14 ], 15 ]) { 16 if (!customElements.get(tag)) { 17 customElements.setElementCreationCallback(tag, () => { 18 ChromeUtils.importESModule(script, { global: "current" }); 19 }); 20 } 21 } 22 }