mirror of https://github.com/keeweb/keeweb.git
removed a workaround for Edge
This commit is contained in:
parent
2a1b01c0aa
commit
3e390388eb
|
@ -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')),
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue