diff --git a/src/routes/wish/import.svelte b/src/routes/wish/import.svelte index 259c2fe7..04691680 100644 --- a/src/routes/wish/import.svelte +++ b/src/routes/wish/import.svelte @@ -94,8 +94,8 @@ }, }; - let powershellScript = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/f35a446e3ad08bff3ebcfa250ec46d0ea4bde225/getlink.ps1'))} global"`; - let powershellScriptChina = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/f35a446e3ad08bff3ebcfa250ec46d0ea4bde225/getlink.ps1'))} china"`; + let powershellScript = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/702e34117b07294e6959928963b76cfdafdd94f3/getlink.ps1'))} global"`; + let powershellScriptChina = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/702e34117b07294e6959928963b76cfdafdd94f3/getlink.ps1'))} china"`; let powershellScriptSource = 'https://gist.github.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235'; let powershellScriptAlt = `iex('Write-Host "Copy the wish history table!";while(1) { $c = Get-Clipboard -TextFormatType Html; if ($c -match "^SourceURL:https:/.+log") { break; }; for($i=5; $i -gt 0; $i--) { Write-Host "\`rChecking in $i" -NoNewline; Sleep 1; }; }; Write-Host " OK"; $m=(((Get-Clipboard -TextFormatType Html) | Select-String "(https:/.+log)").Matches[0].Value);$m; Set-Clipboard -Value $m;')`; let powershellScriptAlt2 = @@ -170,8 +170,8 @@ try { if (selectedType.startsWith('android')) { - const urlString = genshinLink.match(/https:\/\/.*#/g); - url = new URL(urlString); + const urlString = genshinLink.match(/https:\/\/[^\s]+/g); + url = new URL(urlString[0]); } else if (selectedType === 'pclog') { const urlString = genshinLink.match(/https:\/\/.*\//g); url = new URL(urlString); @@ -232,7 +232,7 @@ url.searchParams.set('size', fetchSize); url.searchParams.append('lang', 'en-us'); url.hash = ''; - url.host = 'hk4e-api-os.mihoyo.com'; + url.host = 'hk4e-api-os.hoyoverse.com'; url.pathname = 'event/gacha_info/api/getGachaLog'; if ($server === 'China') { diff --git a/src/service-worker.js b/src/service-worker.js index d5932869..118bf00b 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -7,11 +7,7 @@ const IMAGE_CACHE = `cacheimg${IMAGE_CACHE_VER}`; const IMAGE_URL = `${self.location.origin}/images/`; -const changelog = [ - 'Adjust item list for traveler', - 'Update excel import to support other language', - 'Update character guides', -]; +const changelog = ['Bug fixes', 'Update excel import to support other language']; const channel = new BroadcastChannel('paimonmoe-sw');