diff --git a/Frontend/package.json b/Frontend/package.json index 7f35fef..6587b8b 100644 --- a/Frontend/package.json +++ b/Frontend/package.json @@ -1,6 +1,6 @@ { "name": "opentera-webportal", - "version": "1.0.1", + "version": "1.0.3", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/Frontend/src/app/components/frame/frame.component.ts b/Frontend/src/app/components/frame/frame.component.ts index 419ec46..8a3d539 100644 --- a/Frontend/src/app/components/frame/frame.component.ts +++ b/Frontend/src/app/components/frame/frame.component.ts @@ -11,6 +11,7 @@ export class FrameComponent implements OnInit, OnDestroy { outsideSource = ''; private subscription: Subscription; frameLoading = false; + private firstLoad = true; constructor(private selectedSourceService: SelectedSourceService) { } @@ -31,6 +32,10 @@ export class FrameComponent implements OnInit, OnDestroy { } iframeLoadedCallBack(): void { + if (this.firstLoad){ + this.firstLoad = false; + return; + } console.log('Frame loaded!'); this.frameLoading = false; }