mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:35:55 +00:00
refactor error reporting to AppBase; keep exception_error() for now as a shim
This commit is contained in:
@@ -65,10 +65,6 @@ require(["dojo/_base/kernel",
|
||||
_widescreen_mode: false,
|
||||
hotkey_actions: {},
|
||||
constructor: function () {
|
||||
window.onerror = function (message, filename, lineno, colno, error) {
|
||||
report_error(message, filename, lineno, colno, error);
|
||||
};
|
||||
|
||||
parser.parse();
|
||||
|
||||
this.setLoadingProgress(30);
|
||||
@@ -91,7 +87,7 @@ require(["dojo/_base/kernel",
|
||||
try {
|
||||
App.backendSanityCallback(transport);
|
||||
} catch (e) {
|
||||
exception_error(e);
|
||||
App.Error.report(e);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -555,7 +551,7 @@ require(["dojo/_base/kernel",
|
||||
|
||||
App = new _App();
|
||||
} catch (e) {
|
||||
exception_error(e);
|
||||
App.Error.report(e);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user