diff --git a/chrome/background/background.mjs b/chrome/background/background.mjs index d0174cf0..d8d72236 100644 --- a/chrome/background/background.mjs +++ b/chrome/background/background.mjs @@ -1,4 +1,5 @@ import {PlayerModes} from '../player/enums/PlayerModes.mjs'; +import {EnvUtils} from '../player/utils/EnvUtils.mjs'; import {StringUtils} from '../player/utils/StringUtils.mjs'; import {URLUtils} from '../player/utils/URLUtils.mjs'; import {Utils} from '../player/utils/Utils.mjs'; @@ -803,12 +804,12 @@ try { console.error(e); } - -chrome.action.setBadgeBackgroundColor( - { - color: [56, 114, 223, 255], - }, -); - +if (EnvUtils.isChrome()) { + chrome.action.setBadgeBackgroundColor( + { + color: [56, 114, 223, 255], + }, + ); +} console.log('\n %c %c %cFast%cStream %c-%c ' + ExtensionVersion + ' %c By Andrews54757 \n', 'background: url(https://user-images.githubusercontent.com/13282284/57593160-3a4fb080-7508-11e9-9507-33d45c4f9e41.png) no-repeat; background-size: 16px 16px; padding: 2px 6px; margin-right: 4px', 'background: rgb(50,50,50); padding:5px 0;', 'color: rgb(200,200,200); background: rgb(50,50,50); padding:5px 0;', 'color: rgb(200,200,200); background: rgb(50,50,50); padding:5px 0;', 'color: rgb(200,200,200); background: rgb(50,50,50); padding:5px 0;', 'color: #afbc2a; background: rgb(50,50,50); padding:5px 0;', 'color: black; background: #e9e9e9; padding:5px 0;');