Skip to content

Commit

Permalink
Remove undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
neolite committed Nov 1, 2024
1 parent 516ca7a commit 510a5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extension/src/background/utils/regex-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const regexValidatorExtension = (regexFilter: string): Promise<void> => {
const regexOptions: chrome.declarativeNetRequest.RegexOptions = { regex: regexFilter };
chrome.declarativeNetRequest.isRegexSupported(regexOptions, (result) => {
if (result.isSupported) {
resolve(undefined);
resolve();
} else {
reject(new Error(`Regex is not supported: ${regexFilter}, reason: ${result.reason}`));
}
Expand Down

0 comments on commit 510a5a9

Please sign in to comment.