Skip to content

Commit

Permalink
3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
UNiXMIT committed Nov 16, 2023
1 parent 8185370 commit 55b038c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions SFExt/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function handleMessage(request, sender, sendResponse) {
}

function getBrowserType() {
if (navigator.userAgent.includes('Edg')) {
if (navigator.userAgent.includes('Edge')) {
return 'Edge';
} else if (navigator.userAgent.includes('Chrome')) {
return 'Chrome';
Expand All @@ -87,12 +87,11 @@ function getBrowserType() {
}

async function redirect(newTab) {
if (newTab.url.includes(".force.com/") && newTab.url.includes("/download/")) {
if (newTab.url.includes(".force.com/") && newTab.url.includes("/download/") || newTab.url.includes("/article/")) {
return;
}
getGrab();
if (globalGrab) {
console.log('Link Grabbed')
let currentSfTab = await sfTab();
if (newTab.tabId !== currentSfTab.id) {
if (newTab.url == currentSfTab.url) { return closeTab(newTab.tabId); }
Expand Down
2 changes: 1 addition & 1 deletion SFExtFF/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function getBrowserType() {
}

async function redirect(newTab) {
if (newTab.url.includes(".force.com/") && newTab.url.includes("/download/")) {
if (newTab.url.includes(".force.com/") && newTab.url.includes("/download/") || newTab.url.includes("/article/")) {
return;
}
getGrab();
Expand Down

0 comments on commit 55b038c

Please sign in to comment.