We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3664f commit a91d7b7Copy full SHA for a91d7b7
playground/next/editor.mjs
@@ -573,7 +573,7 @@ window.app = createApp({
573
// the `json-ld` parameter can be JSON or a URL
574
const jsonLdOrUrl = hash.get('json-ld');
575
try {
576
- this.doc = JSON.parse(jsonLdOrUrl);
+ this.doc = JSON.parse(jsonLdOrUrl) || this.doc;
577
setEditorValue(this.mainEditor, this.doc);
578
} catch {
579
this.remoteDocURL = jsonLdOrUrl;
@@ -582,6 +582,6 @@ window.app = createApp({
582
if (hash.get('copyContext') === 'true') {
583
this.copyContext();
584
}
585
- this.outputTab = hash.get('startTab')?.slice(4);
+ this.outputTab = hash.get('startTab')?.slice(4) || this.outputTab;
586
587
}).mount();
0 commit comments