Merge pull request #4 from chrisbeach/stripe-injection

Add stripe injection to <head> in plugin.rb
This commit is contained in:
Chris Beach 2017-11-12 10:02:13 +00:00 committed by GitHub
commit 5c281cf9ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
register_html_builder('server:before-head-close') do
"<script src='https://js.stripe.com/v3/'></script>"
end
after_initialize do
load File.expand_path('../app/jobs/jobs.rb', __FILE__)
end