Skip to content

Commit

Permalink
upgrade to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
xieby1 committed Jun 9, 2022
1 parent f02b6d9 commit a406aad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
7 changes: 5 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.tabs.executeScript({file: "fullscreen.js"});
chrome.action.onClicked.addListener(function(tab) {
chrome.scripting.executeScript({
target: {tabId: tab.id},
files: ["fullscreen.js"]
});
});
13 changes: 7 additions & 6 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "Fullscreen",
"version": "0.0.2",
"version": "0.0.3",
"description": "Fullscreen extension for device without keyboard",
"permissions": ["activeTab"],
"browser_action":{},
"permissions": ["activeTab", "scripting"],
"action": {
"default_title": "Click to fullscreen"
},
"background":
{
"scripts": ["main.js"],
"persistent": false
"service_worker": "main.js"
}
}

0 comments on commit a406aad

Please sign in to comment.