discourse/app/assets/javascripts/print-page.js
Kyle Zhao a6eca28ec6
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
2018-10-25 09:52:01 -04:00

4 lines
81 B
JavaScript

document.addEventListener("DOMContentLoaded", function() {
window.print();
});