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 {
|
try {
|
||||||
await adb.executeCmd('rm /sdcard/coffeevending/ignore_pass');
|
await adb.executeCmd('rm /sdcard/coffeevending/ignore_pass');
|
||||||
await adb.executeCmd('reboot');
|
await adb.executeCmd('reboot');
|
||||||
|
await adb.disconnect();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('error disconnect device while logging out', e);
|
console.error('error disconnect device while logging out', e);
|
||||||
}
|
}
|
||||||
await adb.disconnect();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
authStore.set(null);
|
authStore.set(null);
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import { sveltekit } from '@sveltejs/kit/vite';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [tailwindcss(), sveltekit(), devtoolsJson()],
|
plugins: [tailwindcss(), sveltekit(), devtoolsJson()],
|
||||||
server: {
|
ssr: {
|
||||||
allowedHosts: ['pakins-macbook-pro.tail110d9.ts.net']
|
noExternal: ['@dnd-kit/geometry', '@dnd-kit/core', '@dnd-kit/sortable']
|
||||||
},
|
},
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
include: ['@xterm/xterm', '@xterm/addon-fit', '@xterm/addon-search']
|
include: ['@xterm/xterm', '@xterm/addon-fit', '@xterm/addon-search']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue