Remove some unnecessary logs from webview (#1490)

This commit is contained in:
Evan Simkowitz 2024-12-11 10:39:12 -08:00 committed by GitHub
parent 6684a5c2b8
commit 7ecdf249bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = () => {