mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-24 09:18:27 +00:00
Remove some unnecessary logs from webview (#1490)
This commit is contained in:
parent
6684a5c2b8
commit
7ecdf249bd
1 changed files with 0 additions and 3 deletions
|
|
@ -195,7 +195,6 @@ export class WebViewModel implements ViewModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
setMediaPlaying(isPlaying: boolean) {
|
setMediaPlaying(isPlaying: boolean) {
|
||||||
console.log("setMediaPlaying", isPlaying);
|
|
||||||
globalStore.set(this.mediaPlaying, isPlaying);
|
globalStore.set(this.mediaPlaying, isPlaying);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -532,7 +531,6 @@ const WebView = memo(({ model, onFailLoad }: WebViewProps) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const navigateListener = (e: any) => {
|
const navigateListener = (e: any) => {
|
||||||
console.log("webview did-navigate event:", e);
|
|
||||||
if (e.isMainFrame) {
|
if (e.isMainFrame) {
|
||||||
setErrorText("");
|
setErrorText("");
|
||||||
model.handleNavigate(e.url);
|
model.handleNavigate(e.url);
|
||||||
|
|
@ -541,7 +539,6 @@ const WebView = memo(({ model, onFailLoad }: WebViewProps) => {
|
||||||
const newWindowHandler = (e: any) => {
|
const newWindowHandler = (e: any) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const newUrl = e.detail.url;
|
const newUrl = e.detail.url;
|
||||||
console.log("webview new-window event:", newUrl);
|
|
||||||
fireAndForget(() => openLink(newUrl, true));
|
fireAndForget(() => openLink(newUrl, true));
|
||||||
};
|
};
|
||||||
const startLoadingHandler = () => {
|
const startLoadingHandler = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue