Merge pull request #26 from CountBleck/fixes

Fix Cyclone loading
This commit is contained in:
Green! 2022-10-08 21:46:13 -04:00 committed by GitHub
commit 2cab377e83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ function insertScript(html) {
var res = `<!DOCTYPE html> var res = `<!DOCTYPE html>
<html> <html>
<head> <head>
<script preload src="/cyclone.js"></script> <script preload src="/cyclone/cyclone.js"></script>
</head> </head>
<body> <body>
${html} ${html}

View file

@ -160,7 +160,7 @@ scope: '/service/'
let url = value.trim(); let url = value.trim();
if (!isUrl(url)) url = 'www.google.com/search?q=' + url; if (!isUrl(url)) url = 'www.google.com/search?q=' + url;
if (!(url.startsWith('https://') || url.startsWith('http://'))) url = 'http://' + url; if (!(url.startsWith('https://') || url.startsWith('http://'))) url = 'http://' + url;
let redirectTo = '/cyclone/' + url; let redirectTo = '/service/next/' + url;
const option = localStorage.getItem('nogg'); const option = localStorage.getItem('nogg');
if (option === 'on') { if (option === 'on') {