add stripe script in plugin.rb

This commit is contained in:
Angus McLeod 2017-11-12 11:16:47 +08:00
parent c22ef46224
commit e4f420a96e
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ register_asset "stylesheets/discourse-donations.css"
enabled_site_setting :discourse_donations_enabled enabled_site_setting :discourse_donations_enabled
register_html_builder('server:before-head-close') do
"<script src='https://js.stripe.com/v3/'></script>"
end
after_initialize do after_initialize do
load File.expand_path('../app/jobs/jobs.rb', __FILE__) load File.expand_path('../app/jobs/jobs.rb', __FILE__)
end end