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