diff --git a/lib/flomo/auth.ts b/lib/flomo/auth.ts index 11c6bba..8182747 100644 --- a/lib/flomo/auth.ts +++ b/lib/flomo/auth.ts @@ -14,7 +14,7 @@ export class FlomoAuth{ async auth(uid: string, passwd: string): Promise<[boolean, string]> { try { // Setup - const browser = await playwright_core.webkit.launch(); + const browser = await playwright_core.chromium.launch(); const context = await browser.newContext(playwright_core.devices['Desktop Chrome']); const page = await context.newPage(); diff --git a/lib/flomo/exporter.ts b/lib/flomo/exporter.ts index 9d62d5b..07b9954 100644 --- a/lib/flomo/exporter.ts +++ b/lib/flomo/exporter.ts @@ -9,7 +9,7 @@ export class FlomoExporter { async export(): Promise<[boolean, string]> { try { // Setup - const browser = await playwright_core.webkit.launch(); + const browser = await playwright_core.chromium.launch(); const context = await browser.newContext({ storageState: AUTH_FILE }); const page = await context.newPage(); diff --git a/main.ts b/main.ts index ca29d7b..a876802 100644 --- a/main.ts +++ b/main.ts @@ -41,7 +41,7 @@ export default class FlomoImporterPlugin extends Plugin { id: 'open-flomo-importer', name: 'Open Flomo Importer', callback: () => { - importerUI.open(); + mainUI.open(); }, }); }