Define the variables that are expected to exist but won't be set in setup

This commit is contained in:
Bart Visscher 2013-02-07 08:11:18 +01:00
parent 149d079fd4
commit c0b370f6cf
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@
* To the end of config/config.php to enable debug mode.
* The undefined checks fix the broken ie8 console
*/
var oc_debug;
var oc_webroot;
var oc_requesttoken;
if (oc_debug !== true || typeof console === "undefined" || typeof console.log === "undefined") {
if (!window.console) {
window.console = {};