Fix undefined function when calling error() in the drive
This commit is contained in:
parent
27797c0520
commit
af5cc30381
@ -37,7 +37,14 @@ define([
|
|||||||
var logError = config.logError || logging;
|
var logError = config.logError || logging;
|
||||||
var debug = exp.debug = config.debug || logging;
|
var debug = exp.debug = config.debug || logging;
|
||||||
var error = exp.error = function() {
|
var error = exp.error = function() {
|
||||||
exp.fixFiles();
|
if (sframeChan) {
|
||||||
|
return void sframeChan.query("Q_DRIVE_USEROBJECT", {
|
||||||
|
cmd: "fixFiles",
|
||||||
|
data: {}
|
||||||
|
}, function () {});
|
||||||
|
} else if (typeof (exp.fixFiles) === "function") {
|
||||||
|
exp.fixFiles();
|
||||||
|
}
|
||||||
console.error.apply(console, arguments);
|
console.error.apply(console, arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user