1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

stronger device type checks

This commit is contained in:
Kyle Spearrin
2018-01-15 21:40:42 -05:00
parent fda077cccd
commit b7e97178b1
4 changed files with 13 additions and 9 deletions

View File

@@ -994,7 +994,8 @@
End 1Password Extension
*/
if ((typeof safari !== 'undefined')) {
if ((typeof safari !== 'undefined') && navigator.userAgent.indexOf(' Safari/') !== -1 &&
navigator.userAgent.indexOf('Chrome') === -1) {
safari.self.addEventListener('message', function (msgEvent) {
var msg = msgEvent.message;
if (msg.command === 'collectPageDetails') {