diff --git a/modules/animationManager.js b/modules/animationManager.js index bf5bffa8..50b28053 100644 --- a/modules/animationManager.js +++ b/modules/animationManager.js @@ -26,7 +26,8 @@ /* To work as a JS Code Module (*require jstimer.jsm) http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/jstimer.jsm */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['animationManager']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/autoScroll.js b/modules/autoScroll.js index 095a730c..229b17fa 100644 --- a/modules/autoScroll.js +++ b/modules/autoScroll.js @@ -13,7 +13,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['autoScroll']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/boxObject.js b/modules/boxObject.js index 019e7108..119611dd 100644 --- a/modules/boxObject.js +++ b/modules/boxObject.js @@ -16,7 +16,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['boxObject']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/extensions.js b/modules/extensions.js index b66b40e6..74c4b7ab 100644 --- a/modules/extensions.js +++ b/modules/extensions.js @@ -27,7 +27,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['extensions']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/prefs.js b/modules/prefs.js index 1d7d3ed0..41d3184c 100644 --- a/modules/prefs.js +++ b/modules/prefs.js @@ -27,7 +27,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['prefs']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/stringBundle.js b/modules/stringBundle.js index 75322c87..a40e850f 100644 --- a/modules/stringBundle.js +++ b/modules/stringBundle.js @@ -15,7 +15,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['stringBundle']; // If namespace.jsm is available, export symbols to the shared namespace.