Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 69b2ba2

Browse files
committed
Added explicit close function
Call `msc.close()` to explicitly close an alert.
1 parent dfd5f5d commit 69b2ba2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/msc-script.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,6 @@
154154
window.mscAlert = function(title, sub, onOk, onCancel) {
155155
buildUI(title, sub, onOk, onCancel, "alert");
156156
};
157+
window.msc = {};
158+
window.msc.close = destroy;
157159
})();

0 commit comments

Comments
 (0)