mirror of
https://github.com/primedigitaltech/azon_seeker.git
synced 2026-01-28 01:43:29 +08:00
chore: change proxy
This commit is contained in:
parent
cb249dba87
commit
4ec4d79457
@ -16,6 +16,6 @@ export const isFirefox = navigator.userAgent.includes('Firefox');
|
||||
|
||||
// export const remoteHost = __DEV__ ? '127.0.0.1:8000' : '47.251.4.191:8000';
|
||||
// export const remoteHost = __DEV__ ? '127.0.0.1:18000' : 'vm8nc3zr-18000.usw2.devtunnels.ms';
|
||||
export const remoteHost = __DEV__ ? '127.0.0.1:18000' : '47.251.4.191:8000';
|
||||
export const remoteHost = __DEV__ ? '127.0.0.1:18000' : 'amzplugin.rekeymed.com';
|
||||
|
||||
// export const remoteHost = '47.251.4.191:8000';
|
||||
|
||||
@ -8,7 +8,7 @@ const keyPairPromise = generateKeyPair();
|
||||
const publicKeyBase64Promise = keyPairPromise.then(async ({ publicKey }) => exportKey(publicKey));
|
||||
|
||||
const httpClient = createAlova({
|
||||
baseURL: `http://${remoteHost}`,
|
||||
baseURL: `https://${remoteHost}`,
|
||||
requestAdapter: adapterFetch(),
|
||||
timeout: 10000,
|
||||
statesHook: VueHook,
|
||||
|
||||
@ -17,7 +17,7 @@ export class AmazonSearchPageInjector extends BaseInjector {
|
||||
document.documentElement.clientHeight,
|
||||
);
|
||||
|
||||
await modernScrollTo({ top: h * (0.4 + Math.random() * 0.2), behavior: 'smooth' });
|
||||
// await modernScrollTo({ top: h * (0.4 + Math.random() * 0.2), behavior: 'smooth' });
|
||||
|
||||
if (targetNode || document.readyState === 'complete') {
|
||||
// await new Promise((resolve) => setTimeout(resolve, ~~(Math.random() * 50) + 250));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user