Skip to content

Commit 6555e6b

Browse files
authored
Fixes (#78)
* Fix Error Catching so Upstream can Catch * Update Options * Add Comment
1 parent 562ffd4 commit 6555e6b

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

src/css/options.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* CSS for options.html */
22

3-
.card {
3+
body {
44
min-width: 340px;
55
}
66

src/html/options.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ <h1>Link Extractor</h1>
107107
</span>
108108
</label>
109109
</div>
110+
<!-- <hr class="my-1 me-5">-->
110111
<div class="form-check form-switch">
111112
<input class="form-check-input form-control" type="checkbox" role="switch" id="contextMenu">
112113
<label class="form-check-label" for="contextMenu" aria-describedby="contextMenuHelp">
@@ -119,7 +120,7 @@ <h1>Link Extractor</h1>
119120
<div class="form-check form-switch">
120121
<input class="form-check-input form-control" type="checkbox" role="switch" id="showUpdate">
121122
<label class="form-check-label" for="showUpdate" aria-describedby="showUpdateHelp">
122-
Show Release Notes on Update
123+
Show Update Release Notes
123124
<span data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Show Release Notes on Version Update.">
124125
<i class="fa-solid fa-circle-info ms-1"></i>
125126
</span>

src/js/exports.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,10 @@ export async function injectTab({
5858
// Inject extract.js which listens for messages
5959
for (const tab of tabIds) {
6060
console.debug(`injecting tab.id: ${tab}`)
61-
try {
62-
await chrome.scripting.executeScript({
63-
target: { tabId: tab },
64-
files: ['/js/extract.js'],
65-
})
66-
} catch (e) {
67-
return console.info(e)
68-
}
61+
await chrome.scripting.executeScript({
62+
target: { tabId: tab },
63+
files: ['/js/extract.js'],
64+
})
6965
}
7066

7167
// Open Tab to links.html with desired params

src/js/service-worker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async function onInstalled(details) {
5050
defaultFilter: true,
5151
saveState: true,
5252
linksTruncate: true,
53-
linksNoWrap: true,
53+
linksNoWrap: false,
5454
contextMenu: true,
5555
showUpdate: false,
5656
})
@@ -75,6 +75,7 @@ async function onInstalled(details) {
7575
uninstallURL.searchParams.append('version', manifest.version)
7676
console.log('uninstallURL:', uninstallURL.href)
7777
await chrome.runtime.setUninstallURL(uninstallURL.href)
78+
// Check Permissions for Firefox Omnibox Usage
7879
const hasPerms = await checkPerms()
7980
if (hasPerms) {
8081
await onAdded()

0 commit comments

Comments
 (0)