From f326ae92aac1d0d62ba41300e0aaf820b865f0d2 Mon Sep 17 00:00:00 2001 From: Roel Walraven Date: Fri, 24 Feb 2017 14:22:31 +0100 Subject: [PATCH] Update module loading --- src/LightDMMock.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/LightDMMock.js b/src/LightDMMock.js index 104cf19..be489e6 100644 --- a/src/LightDMMock.js +++ b/src/LightDMMock.js @@ -676,6 +676,14 @@ LightDMMock.watch('timed_login_delay', function() { window.deprecationNotifier("property", "timed_login_delay", "lightdm.autologin_timeout"); }); -if (module) { + +/****************************************************************************** + * Module loading * + ******************************************************************************/ + +/* jshint node : true */ + +if(typeof module !== "undefined" && module.exports) module.exports = LightDMMock; -} + +/* jshint node : false */