You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
filepizza/lib/stores/ErrorStore.js

20 lines
421 B
JavaScript

import SupportActions from '../actions/SupportActions'
import alt from '../alt'
export default alt.createStore(class ErrorStore {
constructor() {
this.bindActions(SupportActions)
this.status = 404
this.message = 'Not Found'
this.stack = null
}
onNoSupport() {
this.status = 400
this.message = 'No WebRTC Support. Please use Chrome or Firefox.'
this.stack = null
}
}, 'ErrorStore')