We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97d2727 commit 1842993Copy full SHA for 1842993
1 file changed
editor/index.html
@@ -237,6 +237,27 @@
237
238
onWindowResize();
239
240
+ //
241
+
242
+ var hash = window.location.hash;
243
244
+ if ( hash.substr( 1, 4 ) === 'app=' ) {
245
246
+ if ( confirm( 'Any unsaved data will be lost. Are you sure?' ) ) {
247
248
+ var loader = new THREE.XHRLoader();
249
+ loader.crossOrigin = '';
250
+ loader.load( hash.substr( 5 ), function ( text ) {
251
252
+ var json = JSON.parse( text );
253
+ editor.fromJSON( json );
254
255
+ } );
256
257
+ }
258
259
260
261
</script>
262
</body>
263
</html>
0 commit comments