Skip to content

Commit

Permalink
Merge pull request #50 from niklas88/fix-url-prefix
Browse files Browse the repository at this point in the history
Fix urlPrefix, don't include "file" part
  • Loading branch information
niklas88 committed Apr 20, 2018
2 parents 65fb8f5 + 82f762f commit 774bb53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Created by buchholb on 3/31/15.
*/

// Hannah 10-04-2018: Explicit prefix for URLs
var urlPrefix = window.location.pathname;
var urlFullPath = window.location.pathname
var urlPrefix = urlFullPath.substring(0, urlFullPath.lastIndexOf('/')+1);
console.log(urlPrefix);

$(document).ready(function () {
Expand Down

0 comments on commit 774bb53

Please sign in to comment.