diff --git a/www/board/agenda/views/vue-config.js.rb b/www/board/agenda/views/vue-config.js.rb index b2e9ae5746..688b7b29fa 100644 --- a/www/board/agenda/views/vue-config.js.rb +++ b/www/board/agenda/views/vue-config.js.rb @@ -1,10 +1,10 @@ # Filter out "data property already declared as a prop" warnings -Vue.config.warnHandler = proc do |msg, vm, trace| +app.config.warnHandler = proc do |msg, vm, trace| return if msg =~ /^The data property "\w+" is already declared as a prop\./ console.error "[Vue warn]: " + msg + trace if defined? console end # reraise uncapturable errors asynchronously to enable easier debugging -Vue.config.errorHandler = proc do |err, vm, info| +app.config.errorHandler = proc do |err, vm, info| setTimeout(0) { raise err } end diff --git a/www/project/icla/views/vue-config.js.rb b/www/project/icla/views/vue-config.js.rb index b2e9ae5746..688b7b29fa 100644 --- a/www/project/icla/views/vue-config.js.rb +++ b/www/project/icla/views/vue-config.js.rb @@ -1,10 +1,10 @@ # Filter out "data property already declared as a prop" warnings -Vue.config.warnHandler = proc do |msg, vm, trace| +app.config.warnHandler = proc do |msg, vm, trace| return if msg =~ /^The data property "\w+" is already declared as a prop\./ console.error "[Vue warn]: " + msg + trace if defined? console end # reraise uncapturable errors asynchronously to enable easier debugging -Vue.config.errorHandler = proc do |err, vm, info| +app.config.errorHandler = proc do |err, vm, info| setTimeout(0) { raise err } end diff --git a/www/roster/views/vue-config.js.rb b/www/roster/views/vue-config.js.rb index b2e9ae5746..688b7b29fa 100644 --- a/www/roster/views/vue-config.js.rb +++ b/www/roster/views/vue-config.js.rb @@ -1,10 +1,10 @@ # Filter out "data property already declared as a prop" warnings -Vue.config.warnHandler = proc do |msg, vm, trace| +app.config.warnHandler = proc do |msg, vm, trace| return if msg =~ /^The data property "\w+" is already declared as a prop\./ console.error "[Vue warn]: " + msg + trace if defined? console end # reraise uncapturable errors asynchronously to enable easier debugging -Vue.config.errorHandler = proc do |err, vm, info| +app.config.errorHandler = proc do |err, vm, info| setTimeout(0) { raise err } end diff --git a/www/secretary/workbench/views/vue-config.js.rb b/www/secretary/workbench/views/vue-config.js.rb index b2e9ae5746..688b7b29fa 100644 --- a/www/secretary/workbench/views/vue-config.js.rb +++ b/www/secretary/workbench/views/vue-config.js.rb @@ -1,10 +1,10 @@ # Filter out "data property already declared as a prop" warnings -Vue.config.warnHandler = proc do |msg, vm, trace| +app.config.warnHandler = proc do |msg, vm, trace| return if msg =~ /^The data property "\w+" is already declared as a prop\./ console.error "[Vue warn]: " + msg + trace if defined? console end # reraise uncapturable errors asynchronously to enable easier debugging -Vue.config.errorHandler = proc do |err, vm, info| +app.config.errorHandler = proc do |err, vm, info| setTimeout(0) { raise err } end