Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update local assets #3472

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/adblocker-electron/adblocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import type {
const PRELOAD_PATH = require.resolve('@cliqz/adblocker-electron-preload');

// https://stackoverflow.com/questions/48854265/why-do-i-see-an-electron-security-warning-after-updating-my-electron-project-t
// tslint:disable no-string-literal
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true';

/**
Expand Down
1 change: 0 additions & 1 deletion packages/adblocker-extended-selectors/src/eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export function querySelectorAll(element: Element, selector: AST): Element[] {
} else if (selector.combinator === '~') {
for (const element2 of elements2) {
let sibling: Element | null = element2;
/* tslint:disable no-conditional-assignment */
while ((sibling = sibling.nextElementSibling) !== null) {
if (matches(sibling, selector.right) === true) {
elements.push(sibling);
Expand Down
2 changes: 0 additions & 2 deletions packages/adblocker-extended-selectors/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ export function gobbleQuotes(text: string, quote: '"' | "'", start: number): str
// Find end of quote, taking care of ignoring escaped quotes
let end = start + 1;

/* tslint:disable no-conditional-assignment */
while ((end = text.indexOf(quote, end)) !== -1 && isEscaped(text, end) === true) {
end += 1;
}
Expand Down Expand Up @@ -427,7 +426,6 @@ export function replace(
const strings: Strings = [];

let offset = 0;
/* tslint:disable no-conditional-assignment */
while ((offset = selector.indexOf(opening, offset)) !== -1) {
const str = gobble(selector, offset);
if (str === undefined) {
Expand Down
Loading