only open dev mode if its dev mode

This commit is contained in:
Shane Harris
2020-08-17 13:31:48 +01:00
committed by Your Name
parent a39d60244d
commit 5968074c2a
2 changed files with 4 additions and 2 deletions
Binary file not shown.
+4 -2
View File
@@ -1,4 +1,4 @@
import { Injectable } from '@angular/core'; import { Injectable, isDevMode } from '@angular/core';
import { AppService } from './app.service'; import { AppService } from './app.service';
@Injectable({ @Injectable({
@@ -57,7 +57,9 @@ export class WebviewService {
this.isWebviewLoading = false; this.isWebviewLoading = false;
this.webView.insertCSS(customCss); this.webView.insertCSS(customCss);
this.isLoaded(); this.isLoaded();
this.webView.openDevTools(); if (isDevMode()) {
this.webView.openDevTools();
}
}); });
} }
back() { back() {