Skip to content

Commit b1ddb8c

Browse files
committed
move config destructure to top
1 parent 868d059 commit b1ddb8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_src/js/features/comp/ConfirmModal.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import $ from 'jquery';
22
import {svg} from '../../svg.js';
33
import {htmlEscape} from 'escape-goat';
44

5+
const {i18n} = window.config;
6+
57
export async function confirmModal(opts = {content: '', buttonColor: 'green'}) {
68
return new Promise((resolve) => {
7-
const i18n = window.config.i18n;
89
const $modal = $(`
910
<div class="ui g-modal-confirm modal">
1011
<div class="content">${htmlEscape(opts.content)}</div>

0 commit comments

Comments
 (0)