jam-cloud/web/app/assets/javascripts/client_init.js.coffee

19 lines
381 B
CoffeeScript

# one time init stuff for the /client view
$ = jQuery
context = window
context.JK ||= {};
context.JK.ClientInit = class ClientInit
constructor: () ->
@logger = context.JK.logger
@gearUtils = context.JK.GearUtils
init: () =>
if context.gon.isNativeClient
this.nativeClientInit()
nativeClientInit: () =>
@gearUtils.bootstrapDefaultPlaybackProfile();