debug non null check
This commit is contained in:
parent
71514e2268
commit
58feeb3529
|
@ -1,6 +1,6 @@
|
||||||
<div id="app-container">
|
<div id="app-container">
|
||||||
<div id="app-chrome" class="focused">
|
<div id="app-chrome" class="focused">
|
||||||
<app-title-bar></app-title-bar>
|
<app-title-bar *ngIf="__WIN32__"></app-title-bar>
|
||||||
<div id="app-contents">
|
<div id="app-contents">
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="ui-g">
|
<div class="ui-g">
|
||||||
<div class="ui-g-12 ui-nopad">
|
<div class="ui-g-12 ui-nopad">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h1>Home works!!!!</h1>
|
<h1>Home works!!</h1>
|
||||||
<p-panel #content [showHeader]="false" class="block-panel">
|
<p-panel #content [showHeader]="false" class="block-panel">
|
||||||
<div class="ui-g" dir="rtl">
|
<div class="ui-g" dir="rtl">
|
||||||
<button class="ui-button-width-fit" type="button" label="Discovery" icon="ui-icon-search" pButton></button>
|
<button class="ui-button-width-fit" type="button" label="Discovery" icon="ui-icon-search" pButton></button>
|
||||||
|
|
|
@ -429,15 +429,17 @@ function createWindow() {
|
||||||
window.onDidLoad((data: any) => {
|
window.onDidLoad((data: any) => {
|
||||||
window.show();
|
window.show();
|
||||||
window.sendLaunchTimingStats({
|
window.sendLaunchTimingStats({
|
||||||
mainReadyTime: readyTime!,
|
mainReadyTime: readyTime ? readyTime : 0,
|
||||||
loadTime: window.loadTime!,
|
loadTime: window.loadTime ? window.loadTime : 0,
|
||||||
rendererReadyTime: window.rendererReadyTime!,
|
rendererReadyTime: window.rendererReadyTime ? window.rendererReadyTime : 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
let fns = onDidLoadFns!;
|
const fns = onDidLoadFns ? onDidLoadFns : null;
|
||||||
onDidLoadFns = null;
|
onDidLoadFns = null;
|
||||||
for (const fn of fns) {
|
if (fns) {
|
||||||
fn(window);
|
for (const fn of fns) {
|
||||||
|
fn(window);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user