Fixing chrome issue pusher callback
This commit is contained in:
@ -4920,7 +4920,7 @@ aside {
|
||||
aside nav section title {
|
||||
display: block;
|
||||
padding: 0 26px 5px 26px;
|
||||
font-size: 10px;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.5;
|
||||
color: #a3a19f; }
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -98,7 +98,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1544151340";
|
||||
var build = "1544222403";
|
||||
var version = "3.31.2";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
@ -185,10 +185,10 @@ class PlaybackControls extends React.Component{
|
||||
</section>
|
||||
|
||||
<section className="triggers">
|
||||
<a className="control expanded-controls" onClick={() => this.setState({expanded: !this.state.expanded})}>
|
||||
<a className="control expanded-controls" onClick={e => this.setState({expanded: !this.state.expanded})}>
|
||||
{this.state.expanded ? <Icon name="expand_more" type="material" /> : <Icon name="expand_less" type="material" />}
|
||||
</a>
|
||||
<a className={"control sidebar-toggle"+(this.props.sidebar_open ? ' open' : '')} onClick={() => this.props.uiActions.toggleSidebar()}>
|
||||
<a className={"control sidebar-toggle"+(this.props.sidebar_open ? ' open' : '')} onClick={e => this.props.uiActions.toggleSidebar()}>
|
||||
<Icon className="open" name="menu" type="material" />
|
||||
</a>
|
||||
</section>
|
||||
|
||||
@ -293,12 +293,12 @@ const PusherMiddleware = (function(){
|
||||
.then(
|
||||
response => {
|
||||
if (action.response_callback){
|
||||
store.dispatch(action.response_callback.call(this, response));
|
||||
action.response_callback.call(this, response);
|
||||
}
|
||||
},
|
||||
error => {
|
||||
if (action.error_callback){
|
||||
store.dispatch(action.error_callback.call(this, error));
|
||||
action.error_callback.call(this, error);
|
||||
} else {
|
||||
store.dispatch(coreActions.handleException(
|
||||
'Pusher request failed',
|
||||
|
||||
@ -34,6 +34,7 @@ const SnapcastMiddleware = (function(){
|
||||
method: 'Server.GetStatus'
|
||||
},
|
||||
response => {
|
||||
console.log(response);
|
||||
store.dispatch(snapcastActions.serverLoaded(response.server));
|
||||
},
|
||||
error => {
|
||||
|
||||
@ -121,7 +121,7 @@ aside{
|
||||
title {
|
||||
display: block;
|
||||
padding: 0 26px 5px 26px;
|
||||
font-size: 10px;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.5;
|
||||
color: colour(mid_grey);
|
||||
|
||||
Reference in New Issue
Block a user