Skip to content

Commit 5784cc9

Browse files
committed
chore: cleanuo
1 parent aeda723 commit 5784cc9

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/webview/index.common.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -647,21 +647,6 @@ export abstract class WebViewExtBase extends ContainerView {
647647
url
648648
} as ShouldOverrideUrlLoadEventData;
649649
this.notify(args);
650-
651-
const eventNameWithSpellingError = 'shouldOverideUrlLoading';
652-
if (this.hasListeners(eventNameWithSpellingError)) {
653-
console.error(`eventName '${eventNameWithSpellingError}' is deprecated due to spelling error:\nPlease use: ${WebViewExtBase.shouldOverrideUrlLoadingEvent}`);
654-
const argsWithSpellingError = {
655-
...args,
656-
eventName: eventNameWithSpellingError
657-
};
658-
659-
this.notify(argsWithSpellingError);
660-
if (argsWithSpellingError.cancel) {
661-
return argsWithSpellingError.cancel;
662-
}
663-
}
664-
665650
return args.cancel;
666651
}
667652

0 commit comments

Comments
 (0)