mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
15 lines
404 B
JavaScript
15 lines
404 B
JavaScript
// loads the module which loads the WASM. It's loaders all the way down.
|
|
import init, { run_app } from '/pkg/kanidmd_web_ui.js';
|
|
async function main() {
|
|
await init('/pkg/kanidmd_web_ui_bg.wasm');
|
|
run_app();
|
|
}
|
|
main()
|
|
|
|
// this is used in modals
|
|
export function modal_hide_by_id(m) {
|
|
var elem = document.getElementById(m);
|
|
var modal = bootstrap.Modal.getInstance(elem);
|
|
modal.hide();
|
|
};
|