accessing file using '?' sign

This commit is contained in:
Val Erastov 2016-10-23 23:37:00 -07:00
parent e70e50d1c8
commit 9b8ba6b382

View file

@ -19,6 +19,9 @@ require('../../css/app3d.less');
function App() {
this.id = window.location.hash.substring(1);
if (!this.id) {
this.id = window.location.search.substring(1);
}
if (!this.id) {
this.id = "DEFAULT";
}
@ -367,6 +370,10 @@ App.prototype._refreshSketches = function() {
}
};
App.prototype.findSketches = function(solid) {
return solid.polyFaces.filter(f => this.faceStorageKey(f.id) in localStorage).map(f => f.id);
};
App.prototype.refreshSketchOnFace = function(sketchFace) {
var faceStorageKey = this.faceStorageKey(sketchFace.id);
var savedFace = localStorage.getItem(faceStorageKey);