js: drop IE support

This commit is contained in:
Zankaria
2024-09-19 22:54:04 +02:00
parent 4332b70363
commit fd309443ea
2 changed files with 2 additions and 14 deletions

View File

@@ -97,14 +97,7 @@ $(document).ready(function(){
// console.log('Deselecting text');
selection.removeAllRanges();
if (document.selection) {
// IE
body.focus();
var sel = document.selection.createRange();
sel.text = quote;
body.focus();
} else if (body.selectionStart || body.selectionStart == '0') {
// Mozilla
if (body.selectionStart || body.selectionStart == '0') {
var start = body.selectionStart;
var end = body.selectionEnd;