This commit is contained in:
SukkaW
2025-01-03 19:39:49 +00:00
parent 4b812e8d6c
commit 791a61240b
7 changed files with 34 additions and 34 deletions

View File

@@ -52,7 +52,7 @@
queue.push = push;
queue.forEach(push);
}
var _window = window, dataLayer = _window.dataLayer, google_optimize = _window.google_optimize;
var {dataLayer: dataLayer, google_optimize: google_optimize} = window;
if (dataLayer instanceof Object === false) {
return;
}
@@ -98,17 +98,17 @@
}
try {
var trace = console.trace.bind(console);
var label = "".concat(ADGUARD_PREFIX, " ");
var label = `${ADGUARD_PREFIX} `;
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += "".concat(source.domainName);
label += `${source.domainName}`;
}
if (source.args) {
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
} else {
label += "#%#//scriptlet('".concat(source.name, "')");
label += `#%#//scriptlet('${source.name}')`;
}
}
if (trace) {