Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
fixing CDN URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
getify committed Jun 26, 2017
1 parent c940744 commit 6ef8976
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion asynquence/fix-script-urls.js
Expand Up @@ -14,7 +14,7 @@
if (src) {
try {
if (remoteURLNeeded && /\/node_modules\//.test(src)) {
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://rawnpm.getify.io/$1/latest/");
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://unpkg.com/$1@latest/");
}
document.write("<sc" + "ript src=\"" + src + "\"></scr" + "ipt>");
} catch (err) {}
Expand Down
2 changes: 1 addition & 1 deletion csp/fix-script-urls.js
Expand Up @@ -14,7 +14,7 @@
if (src) {
try {
if (remoteURLNeeded && /\/node_modules\//.test(src)) {
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://rawnpm.getify.io/$1/latest/");
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://unpkg.com/$1@latest/");
}
document.write("<sc" + "ript src=\"" + src + "\"></scr" + "ipt>");
} catch (err) {}
Expand Down
2 changes: 1 addition & 1 deletion promise-generator/fix-script-urls.js
Expand Up @@ -14,7 +14,7 @@
if (src) {
try {
if (remoteURLNeeded && /\/node_modules\//.test(src)) {
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://rawnpm.getify.io/$1/latest/");
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://unpkg.com/$1@latest/");
}
document.write("<sc" + "ript src=\"" + src + "\"></scr" + "ipt>");
} catch (err) {}
Expand Down
2 changes: 1 addition & 1 deletion promise/fix-script-urls.js
Expand Up @@ -14,7 +14,7 @@
if (src) {
try {
if (remoteURLNeeded && /\/node_modules\//.test(src)) {
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://rawnpm.getify.io/$1/latest/");
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://unpkg.com/$1@latest/");
}
document.write("<sc" + "ript src=\"" + src + "\"></scr" + "ipt>");
} catch (err) {}
Expand Down
2 changes: 1 addition & 1 deletion reactive-sequence/fix-script-urls.js
Expand Up @@ -14,7 +14,7 @@
if (src) {
try {
if (remoteURLNeeded && /\/node_modules\//.test(src)) {
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://rawnpm.getify.io/$1/latest/");
src = src.replace(/^.*\/node_modules\/([^\/]+)\//,"https://unpkg.com/$1@latest/");
}
document.write("<sc" + "ript src=\"" + src + "\"></scr" + "ipt>");
} catch (err) {}
Expand Down

0 comments on commit 6ef8976

Please sign in to comment.