mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 10:00:17 +05:30
fix: guard window assignment for CommonJS compatibility
This commit is contained in:
@@ -216,7 +216,9 @@ class ModalManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Export for use in renderer
|
// Export for use in renderer
|
||||||
window.ModalManager = ModalManager;
|
if (typeof window !== 'undefined') {
|
||||||
|
window.ModalManager = ModalManager;
|
||||||
|
}
|
||||||
|
|
||||||
// CommonJS export
|
// CommonJS export
|
||||||
module.exports = { ModalManager };
|
module.exports = { ModalManager };
|
||||||
|
|||||||
Reference in New Issue
Block a user