only open dev mode if its dev mode
This commit is contained in:
Binary file not shown.
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user