File tree 1 file changed +6
-3
lines changed
Extension/src/background/engine
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,11 @@ export class Engine implements TsWebExtensionEngine {
155
155
if ( skipLimitsCheck ) {
156
156
logger . info ( 'With skip limits check.' ) ;
157
157
}
158
+
159
+ if ( configuration ) {
160
+ throw new Error ( `TEST123: ${ configuration . blockingTrustedRules } ` ) ;
161
+ }
162
+
158
163
const result = await this . api . configure ( configuration ) ;
159
164
160
165
rulesLimitsService . updateConfigurationResult ( result , configuration . settings . filteringEnabled ) ;
@@ -241,8 +246,6 @@ export class Engine implements TsWebExtensionEngine {
241
246
// };
242
247
// }));
243
248
244
- await DocumentBlockApi . init ( ) ;
245
-
246
249
const blockingTrustedRules = await DocumentBlockApi . getTrustedDomains ( ) ;
247
250
248
251
return {
@@ -258,7 +261,7 @@ export class Engine implements TsWebExtensionEngine {
258
261
settings,
259
262
filtersPath : 'filters/' ,
260
263
ruleSetsPath : 'filters/declarative' ,
261
- blockingTrustedRules : blockingTrustedRules || [ ] ,
264
+ blockingTrustedRules,
262
265
} ;
263
266
}
264
267
You can’t perform that action at this time.
0 commit comments