Skip to content

Commit 2efe907

Browse files
authored
Fix Link Parsing 2 (#72)
1 parent af63048 commit 2efe907

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/popup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ async function linksForm(event) {
155155
})
156156
} else if (event.submitter.id === 'open-text') {
157157
let text = value.split(/\s+/).filter((s) => s !== '')
158-
// console.debug('text:', text)
158+
console.debug('text:', text)
159159
text.forEach(function (url) {
160-
if (!url.includes('://')) {
160+
// links without a : get prepended the web extension url by default
161+
if (!url.includes(':')) {
161162
url = `http://${url}`
162163
}
163-
// console.debug('url:', url)
164164
chrome.tabs.create({ active: false, url })
165165
})
166166
} else {

0 commit comments

Comments
 (0)