File tree 3 files changed +11
-8
lines changed
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ var tabs = {
20
20
} ,
21
21
22
22
executeScript : function ( tabId , script ) {
23
- chrome . tabs . executeScript ( tabId , { code : script } ) ;
23
+ chrome . scripting . executeScript ( {
24
+ target : { tabId : tabId } ,
25
+ func : new Function ( script )
26
+ } ) ;
24
27
}
25
28
26
29
} ;
Original file line number Diff line number Diff line change 1
- require ( './browser/listeners.js' ) ;
1
+ importScripts ( './browser/listeners.js' ) ;
Original file line number Diff line number Diff line change 1
1
{
2
- "manifest_version" : 2 ,
2
+ "manifest_version" : 3 ,
3
3
"default_locale" : " en" ,
4
4
"update_url" :" http://clients2.google.com/service/update2/crx" ,
5
5
"name" : " Zendesk Quicktab" ,
6
6
"description" : " Well behaved browser tabs for Zendesk agents" ,
7
7
"version" : " 0.12.0" ,
8
8
"background" : {
9
- "scripts" : [" javascripts/tabWatcher.js" ],
10
- "persistent" : true
9
+ "service_worker" : " javascripts/tabWatcher.js"
11
10
},
12
- "page_action " : {
11
+ "action " : {
13
12
"default_icon" : {
14
13
"19" : " images/icons/icon38-enabled.png" ,
15
14
"38" : " images/icons/icon38-enabled.png"
16
15
},
17
16
"default_title" : " Zendesk QuickTab" ,
18
17
"default_popup" : " popup.html"
19
- },
18
+ },
20
19
"permissions" : [
21
20
" http://*.zendesk.com/*" ,
22
21
" https://*.zendesk.com/*" ,
23
22
" webNavigation" ,
24
- " tabs"
23
+ " tabs" ,
24
+ " scripting"
25
25
],
26
26
"icons" : {
27
27
"16" : " images/icons/icon-16.png" ,
You can’t perform that action at this time.
0 commit comments