mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
correctly hunt for console.log
This commit is contained in:
parent
34867a6e07
commit
da5ccd2000
2 changed files with 3 additions and 2 deletions
|
@ -74,6 +74,7 @@ module PrettyText
|
|||
|
||||
if Rails.env.development? || Rails.env.test?
|
||||
ctx.attach("console.log", proc { |l| p l })
|
||||
ctx.eval('window.console = console;')
|
||||
end
|
||||
|
||||
ctx_load(ctx, "#{Rails.root}/app/assets/javascripts/discourse-loader.js")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue