removed a workaround for Edge

This commit is contained in:
antelle 2020-05-06 18:44:00 +02:00
parent 2a1b01c0aa
commit 3e390388eb
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
2 changed files with 0 additions and 16 deletions

View File

@ -16,7 +16,6 @@ const Features = {
!isDesktop &&
!/^http(s?):\/\/((localhost:8085)|((app|beta)\.keeweb\.info))/.test(location.href),
isLocal: location.origin.indexOf('localhost') >= 0,
needFixClicks: /Edge\/14/.test(navigator.appVersion),
canUseWasmInWebWorker: !isDesktop && !/Chrome/.test(navigator.appVersion),
canUseNativeModules:
isDesktop && !(process.platform === 'win32' && !process.arch.includes('64')),

View File

@ -108,7 +108,6 @@ class AppView extends View {
}
this.setWindowClass();
this.fixClicksInEdge();
this.setupAutoSave();
}
@ -125,19 +124,6 @@ class AppView extends View {
}
}
fixClicksInEdge() {
// MS Edge doesn't want to handle clicks by default
// TODO: remove once Edge 14 share drops enough
// https://github.com/keeweb/keeweb/issues/636#issuecomment-304225634
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5782378/
if (Features.needFixClicks) {
const msEdgeScrewer = $('<input/>')
.appendTo(this.$el)
.focus();
setTimeout(() => msEdgeScrewer.remove(), 0);
}
}
render() {
super.render({
beta: this.model.isBeta,
@ -323,7 +309,6 @@ class AppView extends View {
this.showOpenFile();
this.selectLastOpenFile();
}
this.fixClicksInEdge();
}
showFileSettings(e) {