Update index.js
This commit is contained in:
parent
ee39897e60
commit
501f95a6fa
1 changed files with 2 additions and 2 deletions
2
index.js
2
index.js
|
|
@ -4,7 +4,7 @@ const input = document.querySelector('input');
|
|||
form.addEventListener('submit', async event => {
|
||||
event.preventDefault();
|
||||
window.navigator.serviceWorker.register(__uv$config.sw, {
|
||||
scope: '/'
|
||||
scope: __uv$config.prefix
|
||||
}).then(() => {
|
||||
let url = input.value.trim();
|
||||
if (!isUrl(url)) url = 'https://www.google.com/search?q=' + url;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue