Update historyListener.js

This commit is contained in:
Evert Heylen
2024-05-28 16:28:55 +02:00
committed by GitHub
parent 92e43b7f61
commit dce06a7f47

View File

@@ -44,7 +44,7 @@ function historyCleaner(details) {
if(urlBefore !== urlAfter) {
browser.tabs.executeScript(details.tabId, {
frameId: details.frameId,
code: 'history.replaceState({state: null},"",'+JSON.stringify(urlAfter)+');'
code: 'history.replaceState(null,"",'+JSON.stringify(urlAfter)+');'
}).then(() => {}, onError);
}
}