* working on build issues still
This commit is contained in:
parent
2f562b7df3
commit
b179869606
|
|
@ -38,7 +38,6 @@
|
|||
//= require jquery.exists
|
||||
//= require jquery.payment
|
||||
//= require jquery.visible
|
||||
//= require es5-shim
|
||||
//= require reflux
|
||||
//= require howler.core.js
|
||||
//= require jstz
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ context.JK.ClientInit = class ClientInit
|
|||
setTimeout(this.checkBroadcastNotification, 3000)
|
||||
|
||||
checkBroadcastNotification: () =>
|
||||
console.log("broadcastActions", broadcastActions)
|
||||
broadcastActions.load.triggerPromise()
|
||||
if context.JK.userId
|
||||
broadcastActions.load.triggerPromise()
|
||||
|
||||
|
||||
nativeClientInit: () =>
|
||||
|
|
|
|||
|
|
@ -25,8 +25,9 @@ BroadcastNotificationStore = Reflux.createStore(
|
|||
onLoadCompleted: () =>
|
||||
logger.debug("broadcast notification sync completed")
|
||||
|
||||
onLoadFailed: () =>
|
||||
logger.error("broadcast notification sync failed")
|
||||
onLoadFailed: (jqXHR) =>
|
||||
if jqXHR.status != 404
|
||||
logger.error("broadcast notification sync failed")
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -374,6 +374,9 @@ SampleApp::Application.routes.draw do
|
|||
match '/users/:id/share/session/:provider' => 'api_users#share_session', :via => :get
|
||||
match '/users/:id/share/recording/:provider' => 'api_users#share_recording', :via => :get
|
||||
|
||||
# broadcast notification
|
||||
match '/users/:id/broadcast_notification' => 'api_users#broadcast_notification', :via => :get
|
||||
|
||||
# session chat
|
||||
match '/chat' => 'api_chats#create', :via => :post
|
||||
match '/sessions/:music_session/chats' => 'api_chats#index', :via => :get
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue