Files
threshold-ui/ui/desktop/app/controllers/application.js
T

26 lines
605 B
JavaScript
Raw Normal View History

2020-11-13 15:20:26 -05:00
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import config from '../config/environment';
import { computed } from '@ember/object';
2020-11-13 15:20:26 -05:00
export default class ApplicationController extends Controller {
// =services
@service session;
// =attributes
notifyTimeout = config.notifyTimeout;
// =attributes
/**
* Check for MacOS frame
* @type {boolean}
*/
@computed('isMacOS', 'isFrameless')
get hasMacOSFrame() {
console.log('hasMacOSFrame ', this.isMacOS && !this.isFrameless);
return this.isMacOS && !this.isFrameless;
}
2020-11-13 15:20:26 -05:00
}