Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions www/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ function safeJSON (string) {
}

function onAnalyze (value) {
// For shareability purposes
const url = new URL(window.location.href)
url.searchParams.set('json', value)
window.history.replaceState({ value }, '', url.href)

const jsonDocument = safeJSON(value)
if (typeof jsonDocument === 'undefined') {
document.getElementById('json-error').style.display = 'block'
Expand All @@ -187,9 +182,4 @@ document.getElementById('analyze').addEventListener('click', () => {
return onAnalyze(code.getValue())
})

const urlValue = new URL(window.location.href).searchParams.get('json')
if (urlValue) {
code.setValue(urlValue)
}

onAnalyze(code.getValue())