-import {onSelect} from "../services/dom";
-import {Component} from "./component";
+import {onSelect} from '../services/dom.ts';
+import {Component} from './component';
/**
* Custom equivalent of window.confirm() using our popup component.
this.sendResult(false);
});
- return new Promise((res, rej) => {
- this.res = res;
+ return new Promise(res => {
+ this.res = res;
});
}
*/
sendResult(result) {
if (this.res) {
- this.res(result)
+ this.res(result);
this.res = null;
}
}
-}
\ No newline at end of file
+}