Rebase to master when repo went private
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { WebviewComponent } from './webview.component';
|
||||
|
||||
describe('WebviewComponent', () => {
|
||||
let component: WebviewComponent;
|
||||
let fixture: ComponentFixture<WebviewComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ WebviewComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(WebviewComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,21 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { WebviewService } from '../webview.service';
|
||||
import { AppService } from '../app.service';
|
||||
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
|
||||
import { Subscription } from 'rxjs/Subscription';
|
||||
|
||||
@Component({
|
||||
selector: 'app-webview',
|
||||
templateUrl: './webview.component.html',
|
||||
styleUrls: ['./webview.component.css'],
|
||||
})
|
||||
export class WebviewComponent implements OnInit {
|
||||
constructor(webService: WebviewService, appService: AppService, router: Router, route: ActivatedRoute) {
|
||||
appService.resetTop();
|
||||
webService.isWebviewOpen = true;
|
||||
appService.showBrowserBar = true;
|
||||
appService.setTitle('<img src="assets/images/logo-textual.png" class="logo-img"/>');
|
||||
}
|
||||
|
||||
ngOnInit() {}
|
||||
}
|
||||
Reference in New Issue
Block a user