Fixed typo for CopyRaw #291

This commit is contained in:
ManeraKai 2022-05-28 21:31:28 +03:00
parent 447069a7d8
commit 595ca4bfce
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 5 additions and 7 deletions

View File

@ -316,10 +316,10 @@ function copyRaw(test, copyRawElement) {
try { url = new URL(currTab.url); }
catch { resolve(); return; }
let newUrl = await youtubeHelper.reverse(url);
if (!newUrl) newUrl = twitterHelper.reverse(url);
if (!newUrl) newUrl = instagramHelper.reverse(url);
if (!newUrl) newUrl = tiktokHelper.reverse(url);
if (!newUrl) newUrl = imgurHelper.reverse(url);
if (!newUrl) newUrl = await twitterHelper.reverse(url);
if (!newUrl) newUrl = await instagramHelper.reverse(url);
if (!newUrl) newUrl = await tiktokHelper.reverse(url);
if (!newUrl) newUrl = await imgurHelper.reverse(url);
if (newUrl) {
resolve(true);

View File

@ -61,9 +61,7 @@ let incognitoInit = false;
browser.tabs.onCreated.addListener(
tab => {
if (!incognitoInit && tab.incognito) {
browser.tabs.create({
url: browser.extension.getURL("/pages/background/incognito.html"),
});
browser.tabs.create({ url: browser.extension.getURL("/pages/background/incognito.html") });
incognitoInit = true;
}
}