mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 18:10:18 +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
|
||||
window.ModalManager = ModalManager;
|
||||
if (typeof window !== 'undefined') {
|
||||
window.ModalManager = ModalManager;
|
||||
}
|
||||
|
||||
// CommonJS export
|
||||
module.exports = { ModalManager };
|
||||
|
||||
Reference in New Issue
Block a user