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]
player_class = "AsciiIo.FallbackPlayer"
else
player_class = "window.Worker && $.browser.webkit ? " \
"AsciiIo.Player : AsciiIo.FallbackPlayer"
player_class = "window.Worker ? AsciiIo.Player : AsciiIo.FallbackPlayer"
end
if custom_renderer = params[:renderer]