import { Component, Inject } from '@angular/core';
import { MdDialog, MD_DIALOG_DATA, MdDialogConfig } from '@angular/material';
@Component({
selector: 'app-extension-dialog',
template: `
Install extension
An extension is needed to share your screen!
`
})
export class ExtensionDialogComponent {
installView = true;
constructor(public dialog: MdDialog, @Inject(MD_DIALOG_DATA) public data: any) { }
goToExtension() {
window.open(this.data.url, '_blank');
this.installView = false;
}
reloadPage() {
window.location.reload();
}
}