Fixed typo for CopyRaw #291
This commit is contained in:
parent
447069a7d8
commit
595ca4bfce
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue