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

Commit

Permalink
Fix demo load path for registry
Browse files Browse the repository at this point in the history
  • Loading branch information
triblondon committed Aug 25, 2014
1 parent 6bea5f9 commit 132a43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/src/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function loadDemo(showtype) {

function getData(type) {
var oReq = new XMLHttpRequest();
oReq.open("GET", "../../src/scss/_"+type+".scss", true);
oReq.open("GET", ((location.pathname.indexOf('/local') !== -1) ? "../" : "") + "../src/scss/_"+type+".scss", true);
oReq.onload = function() {
var src = this.responseText;
var m = src.match(/\$[\w\-]+\:\s*\n([^;]+);/);
Expand Down

0 comments on commit 132a43e

Please sign in to comment.