Skip to content

Instantly share code, notes, and snippets.

@StefH
Last active June 20, 2020 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StefH/f225cc59e5d87ff148e626042559372a to your computer and use it in GitHub Desktop.
Save StefH/f225cc59e5d87ff148e626042559372a to your computer and use it in GitHub Desktop.
Patch blazor.webassembly.js
- name: Patch blazor.webassembly.js
uses: jacobtomlinson/gha-find-replace@master
with:
find: "return r.loadResource\\(o,t\\(o\\),e\\[o\\],n\\)"
replace: "var p = r.loadResource(o,t(o),e[o],n); p.response.then((x) => { if (typeof window.loadResourceCallback === 'function') { window.loadResourceCallback(Object.keys(e).length, o, x);}}); return p;"
include: "blazor.webassembly.js"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment