fix: error on refresh, cannot logout
Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
parent
21174fc1ad
commit
ab0239434c
2 changed files with 3 additions and 3 deletions
|
|
@ -38,10 +38,10 @@
|
|||
try {
|
||||
await adb.executeCmd('rm /sdcard/coffeevending/ignore_pass');
|
||||
await adb.executeCmd('reboot');
|
||||
await adb.disconnect();
|
||||
} catch (e) {
|
||||
console.error('error disconnect device while logging out', e);
|
||||
}
|
||||
await adb.disconnect();
|
||||
}
|
||||
|
||||
authStore.set(null);
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import { sveltekit } from '@sveltejs/kit/vite';
|
|||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit(), devtoolsJson()],
|
||||
server: {
|
||||
allowedHosts: ['pakins-macbook-pro.tail110d9.ts.net']
|
||||
ssr: {
|
||||
noExternal: ['@dnd-kit/geometry', '@dnd-kit/core', '@dnd-kit/sortable']
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['@xterm/xterm', '@xterm/addon-fit', '@xterm/addon-search']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue