1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Stop bundling the ReadableStream polyfill in MOZCENTRAL builds (PR 10470 follow-up)

Based on the discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1521413, this patch simply removes the `ReadableStream` polyfill completely from MOZCENTRAL builds.

With this patch, the size of the `gulp mozcentral` build target is thus further reduced (building on PR 10470):

|       | `build/mozcentral`
|-------|-------------------
|master |   3 339 666
|patch  |   3 209 572
This commit is contained in:
Jonas Jenwald 2019-01-23 20:18:23 +01:00
parent d614cabfa0
commit 249b199ff1
5 changed files with 5 additions and 47 deletions

View file

@ -1,10 +1,3 @@
<!-- This snippet is used in the Firefox extension (included from viewer.html) -->
<base href="resource://pdf.js/web/">
<script>
(function() {
if (typeof ReadableStream === "undefined") {
document.write("<script src=\"../build/streams_polyfill.js\"><\/script>");
}
})();
</script>
<script src="../build/pdf.js"></script>