summaryrefslogtreecommitdiff
path: root/ext/fg/js/driver.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-04 19:42:30 -0800
committerAlex Yatskov <alex@foosoft.net>2017-03-04 19:42:30 -0800
commit7269583547cb379a413496946abce145703b2b8a (patch)
treef8cb49b646f6c5faa8008981311e1dd61812d610 /ext/fg/js/driver.js
parent158818713a59509344b0916e6dcfb44cb5042dbd (diff)
polish
Diffstat (limited to 'ext/fg/js/driver.js')
-rw-r--r--ext/fg/js/driver.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index 2cbe3e08..a74c1507 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -17,7 +17,7 @@
*/
-class Driver {
+window.driver = new class {
constructor() {
this.popup = new Popup();
this.popupTimer = null;
@@ -208,9 +208,7 @@ class Driver {
this.popup.showOrphaned();
}
} else {
- errorShow(error);
+ window.alert(`Error: ${error}`);
}
}
-}
-
-window.driver = new Driver();
+};