Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed Jul 8, 2024
1 parent 074c7fa commit 33d00b9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ chrome.runtime.onInstalled.addListener(function (installed) {
} else if (installed.reason == 'install') {
if (navigator.userAgent.indexOf("Firefox") != -1) {
chrome.storage.local.set({below_player_pip: false})
}
}
if (navigator.userAgent.indexOf('Safari') !== -1
&& (!/Windows|Chrom/.test(navigator.userAgent)
|| /Macintosh|iPhone/.test(navigator.userAgent))) {
chrome.storage.local.set({below_player_pip: false})
// still needed? (are screenshots broken in Safari?):
chrome.storage.local.set({below_player_screenshot: false})
}
}
// console.log('Thanks for installing!');
}
});
Expand Down Expand Up @@ -311,11 +311,9 @@ chrome.runtime.onMessage.addListener(function (message, sender, sendResponse) {
filename: message.filename,
saveAs: true
});
} catch (error) {
console.error(error);
}
} catch (error) { console.error(error); }
} else { console.error('Permission is not granted.'); }
})
})
break
}
});
Expand Down

0 comments on commit 33d00b9

Please sign in to comment.