debug non null check

This commit is contained in:
crusader 2018-08-17 12:19:29 +09:00
parent 71514e2268
commit 58feeb3529
3 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<div id="app-container">
<div id="app-chrome" class="focused">
<app-title-bar></app-title-bar>
<app-title-bar *ngIf="__WIN32__"></app-title-bar>
<div id="app-contents">
<router-outlet></router-outlet>
</div>

View File

@ -2,7 +2,7 @@
<div class="ui-g">
<div class="ui-g-12 ui-nopad">
<div class="card">
<h1>Home works!!!!</h1>
<h1>Home works!!</h1>
<p-panel #content [showHeader]="false" class="block-panel">
<div class="ui-g" dir="rtl">
<button class="ui-button-width-fit" type="button" label="Discovery" icon="ui-icon-search" pButton></button>

View File

@ -429,15 +429,17 @@ function createWindow() {
window.onDidLoad((data: any) => {
window.show();
window.sendLaunchTimingStats({
mainReadyTime: readyTime!,
loadTime: window.loadTime!,
rendererReadyTime: window.rendererReadyTime!,
mainReadyTime: readyTime ? readyTime : 0,
loadTime: window.loadTime ? window.loadTime : 0,
rendererReadyTime: window.rendererReadyTime ? window.rendererReadyTime : 0,
});
let fns = onDidLoadFns!;
const fns = onDidLoadFns ? onDidLoadFns : null;
onDidLoadFns = null;
for (const fn of fns) {
fn(window);
if (fns) {
for (const fn of fns) {
fn(window);
}
}
});