Project

General

Profile

« Previous | Next » 

Revision cf838016

Added by koszko over 1 year ago

restore chromium support

View differences:

background/patterns_query_manager.js
4 4
 * Function: Instantiate the Pattern Tree data structure, filled with mappings
5 5
 *           from IndexedDB.
6 6
 *
7
 * Copyright (C) 2021,2022 Wojtek Kosior
7
 * Copyright (C) 2021, 2022 Wojtek Kosior
8 8
 *
9 9
 * This program is free software: you can redistribute it and/or modify
10 10
 * it under the terms of the GNU General Public License as published by
......
110 110
	pqt.register(tree, object.pattern, "~allow", object.allow + 0);
111 111
    }
112 112

  
113
#IF MOZILLA || MV3
114 113
    const id = kind === "mappings" ? object.identifier : object.pattern;
115 114
    currently_registered.set(id, object);
116
#ENDIF
117 115
}
118 116

  
119 117
function changed(kind, change) {
......
126 124
	    pqt.deregister(tree, change.key, "~allow");
127 125
	}
128 126

  
129
#IF MOZILLA || MV3
130 127
	currently_registered.delete(change.key);
131
#ENDIF
132 128
    }
133 129

  
134 130
    if (change.new_val !== undefined)

Also available in: Unified diff