Don't check for webkit anymore when enabling WebWorker player

This commit is contained in:
Marcin Kulik 2013-05-27 21:24:31 +02:00
parent f5a91c680b
commit 62a3ffed92

View File

@ -4,8 +4,7 @@ module AsciicastsHelper
if params[:fallback] if params[:fallback]
player_class = "AsciiIo.FallbackPlayer" player_class = "AsciiIo.FallbackPlayer"
else else
player_class = "window.Worker && $.browser.webkit ? " \ player_class = "window.Worker ? AsciiIo.Player : AsciiIo.FallbackPlayer"
"AsciiIo.Player : AsciiIo.FallbackPlayer"
end end
if custom_renderer = params[:renderer] if custom_renderer = params[:renderer]