Skip to content

Commit

Permalink
Update eli.js
Browse files Browse the repository at this point in the history
  script.setAttribute("data-cfasync","false");
Fix the CloudFlare's Rocket Launcher issue.
  • Loading branch information
aj-techsoul authored Nov 19, 2024
1 parent 23b1392 commit 9056a91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eli.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ async function loadScript(url, callback)
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
script.setAttribute("data-cfasync","false");

if(url.search("shoelace") > 0){
script.type = "module";
Expand Down

0 comments on commit 9056a91

Please sign in to comment.