Don't check for webkit anymore when enabling WebWorker player
This commit is contained in:
parent
f5a91c680b
commit
62a3ffed92
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user