Skip to content

Commit

Permalink
test cros
Browse files Browse the repository at this point in the history
  • Loading branch information
htmambo committed Feb 25, 2024
1 parent 76b3ec8 commit 34a2475
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/utils/cloud/upstash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ export function createUpstashClient(store: SyncStore) {
return {
async check() {
try {
const res = await corsFetch(this.path(`get/${storeKey}`), {
method: "GET",
headers: this.headers(),
proxyUrl,
const res = await window.tauri.fetch({
url: this.path(`get/${storeKey}`),
options: {
method: "GET",
headers: this.headers(),
mode: "cors",
}
});
console.log("[Upstash] check", res.status, res.statusText);
return [200].includes(res.status);
Expand Down

0 comments on commit 34a2475

Please sign in to comment.