Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
Bump to version 0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeezley committed Jan 8, 2016
1 parent 092650a commit 6c8e331
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vgl",
"description": "VTK for the Web.",
"version": "0.3.4",
"version": "0.3.5",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
14 changes: 9 additions & 5 deletions vgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -7681,12 +7681,16 @@ inherit(vgl.shader, vgl.object);

var getBaseUrl = (function () {
'use strict';
var baseUrl = '.';
var scripts = document.getElementsByTagName('script');
var index = scripts.length - 1;
var vglScript = scripts[index];
index = vglScript.src.lastIndexOf('/');
var baseUrl = vglScript.src.substring(0, index);

/* When run in certain environments, there may be no scripts loaded. For
* instance, jQuery's $.getScript won't add it to a script tag. */
if (scripts.length > 0) {
var index = scripts.length - 1;
var vglScript = scripts[index];
index = vglScript.src.lastIndexOf('/');
baseUrl = vglScript.src.substring(0, index);
}
return function () { return baseUrl; };
})();

Expand Down
Loading

0 comments on commit 6c8e331

Please sign in to comment.