Browse Source

better detection of baseurl

pull/553/head
Remo Laubacher 11 years ago
parent
commit
623bce35aa
  1. 2
      build/js/storyjs-embed-cdn.js
  2. 2
      build/js/storyjs-embed.js
  3. 2
      source/js/Core/Embed/Embed.js

2
build/js/storyjs-embed-cdn.js

File diff suppressed because one or more lines are too long

2
build/js/storyjs-embed.js

File diff suppressed because one or more lines are too long

2
source/js/Core/Embed/Embed.js

@ -10,7 +10,7 @@ var WebFontConfig;
if(typeof embed_path == 'undefined' || typeof embed_path == 'undefined') {
// REPLACE WITH YOUR BASEPATH IF YOU WANT OTHERWISE IT WILL TRY AND FIGURE IT OUT
var embed_path = getEmbedScriptPath("storyjs-embed.js").split("js/")[0];
var embed_path = getEmbedScriptPath("storyjs-embed.js").slice(0, -3);
}
function getEmbedScriptPath(scriptname) {

Loading…
Cancel
Save