CSP - extract all other inline JavaScripts (#6528)

* wizard page inline js

* print topic inline js

* drop JS for preventing double submission

this is the default behavior with Rails' UJS `disable_with` helper

* omniauth complete redirect JS

* account activate inline js
This commit is contained in:
Kyle Zhao
2018-10-25 09:52:01 -04:00
committed by GitHub
parent 56e0f47bcd
commit a6eca28ec6
14 changed files with 71 additions and 63 deletions

View File

@@ -6,7 +6,7 @@ require_dependency "auth/result"
describe "users/omniauth_callbacks/complete.html.erb" do
let :rendered_data do
JSON.parse(rendered.match(/var authResult = (.*);/)[1])
JSON.parse(rendered.match(/data-auth-result="([^"]*)"/)[1].gsub('"', '"'))
end
it "renders auth info" do