1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 21:04:19 +02:00

Use named "same document" constant instead of hardcoding

This commit is contained in:
Cheng Sun 2015-02-12 18:19:28 +00:00 committed by Deathamns
parent 34b9b1ae8b
commit 7a0044391b

View File

@ -318,7 +318,7 @@ var tabWatcher = {
var tabId = vAPI.tabs.getTabId(browser);
// LOCATION_CHANGE_SAME_DOCUMENT = "did not load a new document"
if ( flags & 1 ) {
if ( flags & Ci.nsIWebProgressListener.LOCATION_CHANGE_SAME_DOCUMENT ) {
vAPI.tabs.onUpdated(tabId, {url: location.asciiSpec}, {
frameId: 0,
tabId: tabId,