Commit 9493c2bf authored by Allen Bai's avatar Allen Bai

feat: commit

parent 1d69f3a5
......@@ -129,8 +129,16 @@ function unmount() {
* @param {IPCFooterOptions} opts
*/
function remount(opts: IPCFooterOptions = {}) {
let target = document.getElementById('__IPC_footer__')
if (target) {
unmount()
mountIPCFooter(opts)
} else {
setTimeout(() => {
unmount()
mountIPCFooter(opts)
}, 800)
}
}
export default { getIPCByDomain, mountIPCFooter, unmount, remount }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment