Skip to content

Commit

Permalink
Any good?
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed May 27, 2024
1 parent 252ca21 commit 4027a93
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions www/board/agenda/views/vue-config.js.rb
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions www/project/icla/views/vue-config.js.rb
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions www/roster/views/vue-config.js.rb
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions www/secretary/workbench/views/vue-config.js.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4027a93

Please sign in to comment.