diff --git a/spec/olm-loader.js b/spec/olm-loader.js index edc2f61b7..c3353621b 100644 --- a/spec/olm-loader.js +++ b/spec/olm-loader.js @@ -14,9 +14,9 @@ See the License for the specific language governing permissions and limitations under the License. */ -// try to load the olm library. import logger from '../src/logger'; +// try to load the olm library. try { global.Olm = require('olm'); logger.log('loaded libolm'); diff --git a/src/realtime-callbacks.js b/src/realtime-callbacks.js index faef507c9..6e0e88910 100644 --- a/src/realtime-callbacks.js +++ b/src/realtime-callbacks.js @@ -24,6 +24,7 @@ limitations under the License. */ "use strict"; +import logger from '../src/logger'; // we schedule a callback at least this often, to check if we've missed out on // some wall-clock time due to being suspended. @@ -39,10 +40,9 @@ let _realCallbackKey; // each is an object with keys [runAt, func, params, key]. const _callbackList = []; -import logger from '../src/logger'; - -// var debuglog = console.log.bind(console); +// var debuglog = logger.log.bind(logger); const debuglog = function() {}; + /** * Replace the function used by this module to get the current time. *