Skip to content

Commit

Permalink
fix: select2 is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronm-2112 committed Dec 1, 2023
1 parent b58a07a commit 01fc353
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/renderer/src/scripts/others/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ import { swalFileListSingleAction, swalFileListTripleAction, swalFileListDoubleA
// add jquery to the window object
window.$ = jQuery;
window.jQuery = jQuery;
select2()
fixPath();
document.addEventListener("DOMContentLoaded", function () {
$('select').select2()
})
fixPath()

// // const prevent_sleep_id = "";
// // const electron_app = electron.app;
Expand Down

0 comments on commit 01fc353

Please sign in to comment.