mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-16 14:15:36 +07:00
Update historyListener.js
This commit is contained in:
@@ -44,7 +44,7 @@ function historyCleaner(details) {
|
|||||||
if(urlBefore !== urlAfter) {
|
if(urlBefore !== urlAfter) {
|
||||||
browser.tabs.executeScript(details.tabId, {
|
browser.tabs.executeScript(details.tabId, {
|
||||||
frameId: details.frameId,
|
frameId: details.frameId,
|
||||||
code: 'history.replaceState({state: null},"",'+JSON.stringify(urlAfter)+');'
|
code: 'history.replaceState(null,"",'+JSON.stringify(urlAfter)+');'
|
||||||
}).then(() => {}, onError);
|
}).then(() => {}, onError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user