Switch Cyclone's prefix from /service to /service/next
If a user navigates to a UV link directly, without the service worker registered, Cyclone's bare server will take over and interpret the URL as http://go/..., which you definitely didn't want, unless you happen to work at Google :P
This commit is contained in:
parent
d62811a34a
commit
1fb7d3c6fc
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ import filter from './cyclone/filter.cyclone.mjs';
|
|||
import * as security from './cyclone/security.cyclone.mjs';
|
||||
|
||||
const config = {
|
||||
prefix: "/service",
|
||||
prefix: "/service/next",
|
||||
requireSSL: true, // Requires SSL?
|
||||
defaultHeaders: {
|
||||
'X-Content-Type-Options': 'no-sniff',
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ window.addEventListener('load', () => {
|
|||
let url = value.trim();
|
||||
if (!isUrl(url)) url = 'www.google.com/search?q=' + url;
|
||||
if (!(url.startsWith('https://') || url.startsWith('http://'))) url = 'http://' + url;
|
||||
let redirectTo = '/service/' + url;
|
||||
let redirectTo = '/service/next/' + url;
|
||||
const option = localStorage.getItem('nogg');
|
||||
if (option === 'on') {
|
||||
stealthEngine(redirectTo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue