mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
16 lines
434 B
JavaScript
16 lines
434 B
JavaScript
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
|
import "@hotwired/turbo-rails";
|
|
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;
|
|
};
|
|
}
|