Skip to content

Commit

Permalink
Add crossOrigin support back in
Browse files Browse the repository at this point in the history
  • Loading branch information
gigabo committed Jan 27, 2017
1 parent 08b3372 commit 6ccd685
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/flab/LAB.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
script = document.createElement("script");
if (script_obj.type) script.type = script_obj.type;
if (script_obj.charset) script.charset = script_obj.charset;
if (script_obj.crossOrigin) script.crossOrigin = script_obj.crossOrigin;

// should preloading be used for this script?
if (preload_this_script) {
Expand Down Expand Up @@ -226,6 +227,7 @@
script = registry_item.elem || document.createElement("script");
if (script_obj.type) script.type = script_obj.type;
if (script_obj.charset) script.charset = script_obj.charset;
if (script_obj.crossOrigin) script.crossOrigin = script_obj.crossOrigin;
create_script_load_listener(script,registry_item,"finished",preload_execute_finished);

// script elem was real-preloaded
Expand Down

0 comments on commit 6ccd685

Please sign in to comment.