Skip to content

Commit

Permalink
Fixes URL history
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jun 27, 2024
1 parent cee3613 commit aba1df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h2 id="sheet-name" onclick="toggleNameEdit(this);">Your Spreadsheets</h2>
if (!relay) {
relay = "wss://nostr.mom"
urlParams.set("relay", relay);
history.pushState(null, '', window.location.pathname + '?' + urlParams.toString());
history.replaceState(null, '', window.location.pathname + '?' + urlParams.toString());
}

console.log("Load page for", relay, author, dTag)
Expand Down Expand Up @@ -535,7 +535,7 @@ <h2 id="sheet-name" onclick="toggleNameEdit(this);">Your Spreadsheets</h2>
//window.location.search = urlParams.toString();

var newRelativePathQuery = window.location.pathname + '?' + urlParams.toString();
history.pushState(null, '', newRelativePathQuery);
history.replaceState(null, '', newRelativePathQuery);
}

univer.createUniverSheet(convertDataArrayToUniver(name, data));
Expand Down

0 comments on commit aba1df2

Please sign in to comment.