OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 cr.define('hotword', function() { | |
6 'use strict'; | |
7 | |
8 var DEBUG = false; | |
Dan Beam
2014/09/30 03:42:58
nit: just remove this
Anand Mistry (off Chromium)
2014/09/30 04:14:03
Done.
| |
9 | |
10 /** | |
11 * Wrapper around console.log allowing debug log message to be enabled during | |
12 * development. | |
13 */ | |
14 function debug() { | |
15 if (hotword.DEBUG || window.localStorage['hotword.DEBUG']) | |
16 console.log.apply(console, arguments); | |
17 } | |
18 | |
19 return { | |
20 DEBUG: DEBUG, | |
Dan Beam
2014/09/30 03:42:58
DEBUG: false,
Anand Mistry (off Chromium)
2014/09/30 04:14:03
Done.
| |
21 debug: debug | |
22 }; | |
23 }); | |
OLD | NEW |