Skip to content

Commit

Permalink
ENH: Use gramener.com base when un-currentScript-able #33
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapvardhan committed Aug 6, 2020
1 parent 8fd0fce commit ee71dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comicgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function create_parametric_svg(node, sliderVal) {
// https://cdn.jsdelivr.net/npm/comicgen -> https://cdn.jsdelivr.net/npm/comicgen/
// node_modules/comicgen/dist/comicgen.min.js -> node_modules/comicgen/
// Handle all scenarios and get the base location
comicgen.base = (document.currentScript.src + '/').replace(/[a-z]*\/[a-z.]*\.js\/$/, '')
comicgen.base = ((document.currentScript || {src: 'https://gramener.com/comicgen'}).src + '/').replace(/[a-z]*\/[a-z.]*\.js\/$/, '')

// Import comicgen version from package.json
comicgen.version = version
Expand Down

0 comments on commit ee71dde

Please sign in to comment.