X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/be736b3939a428674ccab33c7aaca95c05ef6437..refs/pull/5625/head:/resources/js/components/confirm-dialog.js diff --git a/resources/js/components/confirm-dialog.js b/resources/js/components/confirm-dialog.js index 572945d5a..00f3cfed2 100644 --- a/resources/js/components/confirm-dialog.js +++ b/resources/js/components/confirm-dialog.js @@ -1,5 +1,5 @@ -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. @@ -25,8 +25,8 @@ export class ConfirmDialog extends Component { this.sendResult(false); }); - return new Promise((res, rej) => { - this.res = res; + return new Promise(res => { + this.res = res; }); } @@ -42,9 +42,9 @@ export class ConfirmDialog extends Component { */ sendResult(result) { if (this.res) { - this.res(result) + this.res(result); this.res = null; } } -} \ No newline at end of file +}