Tell webpack about the extension resource URLs

This commit is contained in:
David Wendt 2019-08-22 13:18:51 -06:00
parent 385b9f807e
commit 7a6169275d
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,8 @@
// Browser extensions are loaded from a dynamically-generated URL, we have to
// tell webpack about that.
__webpack_public_path__ = browser.runtime.getURL("dist/0.ruffle.js").replace("0.ruffle.js", "");
// A dependency graph that contains any wasm must all be imported
// asynchronously. This `bootstrap.js` file does the single async import, so
// that no one else needs to worry about it again.