mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 10:25:36 +01:00
accessing file using '?' sign
This commit is contained in:
parent
e70e50d1c8
commit
9b8ba6b382
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue