can’t innovate my ass 

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-12-07 18:42:44 +01:00
committed by GitHub
parent 4254efe732
commit 7a62659323
243 changed files with 20668 additions and 11553 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import { invoke } from '@tauri-apps/api/core'
import { fetch } from '@tauri-apps/plugin-http'
import { platform } from '@tauri-apps/plugin-os'
import { usePersistedStore } from './store'
import { usePersistedStore } from '../store/persisted'
export async function validateLicense(licenseKey: string) {
console.log('[validateLicense]')
@@ -29,7 +29,7 @@ export async function validateLicense(licenseKey: string) {
platform: platform(),
}),
})
.then((r) => r.json())
.then((r) => r.json() as Promise<{ error: string; valid: boolean }>)
.catch((e) => {
console.error('[validateLicense] failed to validate license')
console.error(JSON.stringify(e))
@@ -76,7 +76,7 @@ export async function revokeMachineLicense(licenseKey: string) {
id,
}),
})
.then((r) => r.json())
.then((r) => r.json() as Promise<{ error: string; revoked: boolean }>)
.catch((e) => {
console.error('[revokeMachineLicense] failed to revoke license, fetch failed')
console.error(JSON.stringify(e))