Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Use gramener.com base when un-currentScript-able #33
Browse files Browse the repository at this point in the history
Pratap Vardhan committed Aug 6, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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

0 comments on commit ee71dde

Please sign in to comment.