blob: e0744e07a420ddd2fb5c2a24c1f13e7dd8b8db2e [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
cr.define('hotword', function() {
'use strict';
/**
* Wrapper around console.log allowing debug log message to be enabled during
* development.
* @param {...*} varArgs
*/
function debug(varArgs) {
if (hotword.DEBUG || window.localStorage['hotword.DEBUG'])
console.log.apply(console, arguments);
}
return {DEBUG: false, debug: debug};
});