From 72c193cce5b1df4ea07107c462c96618ef0e9798 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 26 Jun 2019 22:07:25 +0200 Subject: [PATCH] page to debug app on mobile phones without remote access to tools --- index-build-debug.html | 43 +++++++++++++++++++++++++++++ src/ui/web/session/SyncStatusBar.js | 3 +- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 index-build-debug.html diff --git a/index-build-debug.html b/index-build-debug.html new file mode 100644 index 00000000..7e27801b --- /dev/null +++ b/index-build-debug.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + diff --git a/src/ui/web/session/SyncStatusBar.js b/src/ui/web/session/SyncStatusBar.js index 08ab9955..792aaa24 100644 --- a/src/ui/web/session/SyncStatusBar.js +++ b/src/ui/web/session/SyncStatusBar.js @@ -11,7 +11,8 @@ export default class SyncStatusBar extends TemplateView { "SyncStatusBar_shown": true, }}, [ vm => vm.status, - t.if(vm => !vm.isSyncing, t => t.button({onClick: () => vm.trySync()}, "Try syncing")) + t.if(vm => !vm.isSyncing, t => t.button({onClick: () => vm.trySync()}, "Try syncing")), + window.DEBUG ? t.button({id: "showlogs"}, "Show logs") : "" ]); } }