Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: change CRLF to LF #1

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
chrome.runtime.onInstalled.addListener(() =>
{
// add context menu
chrome.contextMenus.create({ title: "Add to deck", contexts: ['page'], id: "addToDeck" });
// open options page
if (chrome.runtime.openOptionsPage)
{
chrome.runtime.openOptionsPage();
} else
{
window.open(chrome.runtime.getURL('options.html'));
}
chrome.runtime.onInstalled.addListener(() =>
{
// add context menu
chrome.contextMenus.create({ title: "Add to deck", contexts: ['page'], id: "addToDeck" });
// open options page
if (chrome.runtime.openOptionsPage)
{
chrome.runtime.openOptionsPage();
} else
{
window.open(chrome.runtime.getURL('options.html'));
}
});
78 changes: 39 additions & 39 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
{
"name": "A-Deck",
"description": "extension for A-(dding websites to Nextcloud) Deck",
"version": "2",
"manifest_version": 3,
"author": "Leonard Ossa",
"homepage_url": "https://github.com/leoossa/A-deck",
"background": {
"service_worker": "background.js"
},
"options_ui": {
"page": "options.html",
"open_in_tab": false
},
"permissions": [
"storage",
"activeTab",
"contextMenus"
],
"host_permissions": [
"https://*/"
],
"action": {
"default_title": "Add this website to Deck!",
"default_popup": "popup.html",
"default_icon": "icon.png"
},
"icons": {
"512": "icon.png"
},
"commands": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+Shift+S",
"mac": "MacCtrl+Shift+S"
},
"description": "Opens popup"
}
}
{
"name": "A-Deck",
"description": "extension for A-(dding websites to Nextcloud) Deck",
"version": "2",
"manifest_version": 3,
"author": "Leonard Ossa",
"homepage_url": "https://github.com/leoossa/A-deck",
"background": {
"service_worker": "background.js"
},
"options_ui": {
"page": "options.html",
"open_in_tab": false
},
"permissions": [
"storage",
"activeTab",
"contextMenus"
],
"host_permissions": [
"https://*/"
],
"action": {
"default_title": "Add this website to Deck!",
"default_popup": "popup.html",
"default_icon": "icon.png"
},
"icons": {
"512": "icon.png"
},
"commands": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+Shift+S",
"mac": "MacCtrl+Shift+S"
},
"description": "Opens popup"
}
}
}