fix error

This commit is contained in:
chiu 2021-09-15 22:49:36 +08:00
parent 854685dd36
commit e3fe69f28e
1 changed files with 2 additions and 2 deletions

View File

@ -142,8 +142,8 @@ class AdBannersController < ApplicationController
extra_before_html = ""
extra_after_html = ""
if has_jplayer
extra_before_html = "<link href=\"/assets/ad_banner/jplayer.blue.monday.min.css\" rel=\"stylesheet\">"
extra_after_html = "<script src=\"/assets/ad_banner/jquery.jplayer.min.js\"></script>"
extra_before_html = ActionController::Base.helpers.stylesheet_link_tag("ad_banner/jplayer.blue.monday.min.css")
extra_after_html = ActionController::Base.helpers.javascript_include_tag("ad_banner/jquery.jplayer.js")
end
{
"extras" => {