3a23719127
* Array.any() relies on prototype extensions * remove remaining usage of array prototype extensions
12 lines
296 B
JavaScript
12 lines
296 B
JavaScript
import Controller from '@ember/controller';
|
|
import sjcl from 'sjcl';
|
|
|
|
export default class PollErrorController extends Controller {
|
|
get decryptionFailed() {
|
|
return this.model instanceof sjcl.exception.corrupt;
|
|
}
|
|
|
|
get notFound() {
|
|
return this.model.errors[0].status === '404';
|
|
}
|
|
}
|