Skip to content

Instantly share code, notes, and snippets.

@StefH
Last active June 20, 2020 12:17
Show Gist options
  • 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