File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 5
5
async function insertContentScript ( ) {
6
6
return new Promise ( ( resolve : ( ) => void , reject : ( reason : Error ) => void ) => {
7
7
try {
8
- return chrome . tabs . executeScript ( { file : 'build/content.js' } , ( ) => {
9
- chrome . tabs . insertCSS ( { file : 'css/content.css' } , resolve ) ;
8
+ return chrome . tabs . executeScript ( { file : '/ build/content.js' } , ( ) => {
9
+ chrome . tabs . insertCSS ( { file : '/ css/content.css' } , resolve ) ;
10
10
} ) ;
11
11
} catch ( error ) {
12
12
return reject ( error ) ;
@@ -52,9 +52,7 @@ async function addAccount(_ui: UI) {
52
52
return ;
53
53
} ,
54
54
beginCapture : async ( ) => {
55
- if ( navigator . userAgent . indexOf ( 'Chrome' ) !== - 1 ) {
56
- await insertContentScript ( ) ;
57
- }
55
+ await insertContentScript ( ) ;
58
56
59
57
const entries = _ui . instance . entries as OTPEntry [ ] ;
60
58
for ( let i = 0 ; i < entries . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments