mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
Mobile console debugging
This commit is contained in:
@@ -5,3 +5,11 @@ import "controllers";
|
||||
Turbo.StreamActions.redirect = function () {
|
||||
Turbo.visit(this.target);
|
||||
};
|
||||
|
||||
if (typeof console !== "undefined") {
|
||||
console.debug = console.log;
|
||||
window.onerror = (msg, url, line) => {
|
||||
console.log(`Error: ${msg}\nURL: ${url}\nLine: ${line}`);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user