]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/confirm-dialog.js
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / components / confirm-dialog.js
index 572945d5aba4ae7099a30dc29a28fe58f62d4542..00f3cfed201c34016da201a0fca14afb6c07e37c 100644 (file)
@@ -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
+}