$$ngIsClass fix for ESR
This commit is contained in:
parent
4ceac37849
commit
89b300f268
|
@ -129,6 +129,27 @@ require('./settings/settingsPremiumController.js');
|
||||||
require('./settings/settingsEnvironmentController.js');
|
require('./settings/settingsEnvironmentController.js');
|
||||||
require('./tools/toolsPasswordGeneratorHistoryController.js');
|
require('./tools/toolsPasswordGeneratorHistoryController.js');
|
||||||
|
|
||||||
|
// $$ngIsClass fix issue with "class constructors must be invoked with |new|" on Firefox ESR
|
||||||
|
// ref: https://github.com/angular/angular.js/issues/14240
|
||||||
|
import { ActionButtonsController } from './components/action-buttons.component';
|
||||||
|
ActionButtonsController.$$ngIsClass = true;
|
||||||
|
import { CipherItemsController } from './components/cipher-items.component';
|
||||||
|
CipherItemsController.$$ngIsClass = true;
|
||||||
|
import { IconController } from './components/icon.component';
|
||||||
|
IconController.$$ngIsClass = true;
|
||||||
|
import { PopOutController } from './components/pop-out.component';
|
||||||
|
PopOutController.$$ngIsClass = true;
|
||||||
|
import { CurrentController } from './current/current.component';
|
||||||
|
CurrentController.$$ngIsClass = true;
|
||||||
|
import { LockController } from './lock/lock.component';
|
||||||
|
LockController.$$ngIsClass = true;
|
||||||
|
import { ExportController } from './tools/export.component';
|
||||||
|
ExportController.$$ngIsClass = true;
|
||||||
|
import { PasswordGeneratorController } from './tools/password-generator.component';
|
||||||
|
PasswordGeneratorController.$$ngIsClass = true;
|
||||||
|
import { ToolsController } from './tools/tools.component';
|
||||||
|
ToolsController.$$ngIsClass = true;
|
||||||
|
|
||||||
// Bootstrap the angular application
|
// Bootstrap the angular application
|
||||||
angular.element(function () {
|
angular.element(function () {
|
||||||
angular.bootstrap(document, ['bit']);
|
angular.bootstrap(document, ['bit']);
|
||||||
|
|
|
@ -2,7 +2,7 @@ import * as template from './action-buttons.component.html';
|
||||||
|
|
||||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||||
|
|
||||||
class ActionButtonsController implements ng.IController {
|
export class ActionButtonsController implements ng.IController {
|
||||||
onView: Function;
|
onView: Function;
|
||||||
|
|
||||||
cipher: any;
|
cipher: any;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as template from './cipher-items.component.html';
|
import * as template from './cipher-items.component.html';
|
||||||
|
|
||||||
class CipherItemsController implements ng.IController {
|
export class CipherItemsController implements ng.IController {
|
||||||
onSelected: Function;
|
onSelected: Function;
|
||||||
onView: Function;
|
onView: Function;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as template from './icon.component.html';
|
import * as template from './icon.component.html';
|
||||||
|
|
||||||
class IconController implements ng.IController {
|
export class IconController implements ng.IController {
|
||||||
cipher: any;
|
cipher: any;
|
||||||
icon: string;
|
icon: string;
|
||||||
image: string;
|
image: string;
|
||||||
|
|
|
@ -2,7 +2,7 @@ import * as template from './pop-out.component.html';
|
||||||
|
|
||||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||||
|
|
||||||
class PopOutController implements ng.IController {
|
export class PopOutController implements ng.IController {
|
||||||
constructor(private $analytics: any, private $window: any, private utilsService: UtilsService) {
|
constructor(private $analytics: any, private $window: any, private utilsService: UtilsService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { CipherType } from '../../../enums/cipherType.enum';
|
||||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||||
import * as template from './current.component.html';
|
import * as template from './current.component.html';
|
||||||
|
|
||||||
class CurrentController {
|
export class CurrentController {
|
||||||
i18n: any;
|
i18n: any;
|
||||||
pageDetails: any = [];
|
pageDetails: any = [];
|
||||||
loaded: boolean = false;
|
loaded: boolean = false;
|
||||||
|
|
|
@ -4,7 +4,7 @@ import * as template from './lock.component.html';
|
||||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||||
|
|
||||||
class LockController {
|
export class LockController {
|
||||||
i18n: any;
|
i18n: any;
|
||||||
masterPassword: string;
|
masterPassword: string;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import * as template from './tools.component.html';
|
||||||
|
|
||||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||||
|
|
||||||
class ToolsController {
|
export class ToolsController {
|
||||||
showExport: boolean;
|
showExport: boolean;
|
||||||
i18n: any;
|
i18n: any;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue