Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 571109389
  • Loading branch information
schmidt-sebastian authored and copybara-github committed Oct 5, 2023
1 parent 24da737 commit a1e542f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mediapipe/web/graph_runner/run_script_helper.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export async function runScript(scriptUrl: string) {
importScripts(scriptUrl.toString());
} else {
const script = document.createElement('script');
script.setAttribute('src', scriptUrl);
script.setAttribute('crossorigin', 'anonymous');
(script as {src:string}).src = scriptUrl.toString();
script.crossOrigin = 'anonymous';
return new Promise<void>((resolve, revoke) => {
script.addEventListener('load', () => {
resolve();
Expand Down

0 comments on commit a1e542f

Please sign in to comment.