diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-08-18 17:51:39 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-08-18 17:51:51 +0200 |
commit | 0bbda8fceb52f28032460db0331b09ad086a2a64 (patch) | |
tree | ccf1b72c60545e706fac21167fa480d5fa74e327 | |
parent | 443bc095a72949adb4a007c9a19a43da7dd8843d (diff) | |
download | browser-extension-0bbda8fceb52f28032460db0331b09ad086a2a64.tar.gz browser-extension-0bbda8fceb52f28032460db0331b09ad086a2a64.zip |
enhance our bundler to protect top-level `this' from accidental clobbering
-rwxr-xr-x | build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -246,7 +246,7 @@ s^_CONTENTSCRIPTS_^$CONTENTSCRIPTS^" \ (echo "\ \"use strict\"; -(() => { +({fun: (function() { $(map_get IMPORTCODES $FILEKEY) "; @@ -262,7 +262,7 @@ fi echo " $(map_get EXPORTCODES $FILEKEY) -})();") > $BUILDDIR/$FILE +})}).fun();") > $BUILDDIR/$FILE fi done |