Skip to content

Commit 6feec51

Browse files
committed
Replace browser-polyfill.js with an empty stub in Firefox builds.
1 parent 6c5ff5e commit 6feec51

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ build() {
217217
fi
218218
# we use svg icons on Firefox
219219
rm "$UNPACKED_DIR/img/"*.png
220+
# no need for browser-polyfill, since Firefox is our primary API target
221+
echo >"$UNPACKED_DIR/nscl/lib/browser-polyfill.js" '"Empty stub: no need for extensions API polyfill on Firefox!"'
220222
fi
221223

222224
if [[ $UNPACKED_ONLY ]]; then

0 commit comments

Comments
 (0)