Fix proxy handling
This commit is contained in:
parent
275a6fd445
commit
17ab03dcdc
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ window.addEventListener('load', () => {
|
||||||
let url = value.trim();
|
let url = value.trim();
|
||||||
if (!isUrl(url)) url = 'https://www.google.com/search?q=' + url;
|
if (!isUrl(url)) url = 'https://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 = proxy ? __uv$config.prefix + __uv$config.encodeUrl(url) : __osana$config.prefix + __osana$config.codec.encode(url);
|
let redirectTo = proxy === 'uv' ? __uv$config.prefix + __uv$config.encodeUrl(url) : __osana$config.prefix + __osana$config.codec.encode(url);
|
||||||
const option = localStorage.getItem('nogg');
|
const option = localStorage.getItem('nogg');
|
||||||
if (option === 'on') {
|
if (option === 'on') {
|
||||||
stealthEngine(redirectTo);
|
stealthEngine(redirectTo);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue