Load /samples from localhost

pull/98/head
Ian Prest 9 years ago
parent ee48716bfa
commit 7d51134458

@ -240,7 +240,12 @@
$scope.deserializeAndRender($serial.fromJsonL(loc));
}
} else if($location.path()[0] === '/') {
$http.get($serial.base_href + $location.path()).success(function(data) {
var base = $serial.base_href;
if($location.path().substring(0,8) === '/samples') {
// Load samples from local folder
base = '';
}
$http.get(base + $location.path()).success(function(data) {
$scope.deserializeAndRender(data);
updateSerialized();
}).error(function() {

Loading…
Cancel
Save