Remove IE11 support (#11470)
* Remove IE11 support With master now on 1.13, it's time to drop IE11 for good. The woff variants are also in use by Opera Mini but it has even less market share and I can only imagine how broken the UI is in it. Fixes: https://github.com/go-gitea/gitea/issues/6147 * update docs Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
6da87eda8b
commit
34e6a4e057
11 changed files with 14 additions and 45 deletions
|
@ -3,7 +3,6 @@
|
|||
/* exported toggleDeadlineForm, setDeadline, updateDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */
|
||||
|
||||
import './publicpath.js';
|
||||
import './polyfills.js';
|
||||
|
||||
import Vue from 'vue';
|
||||
import 'jquery.are-you-sure';
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
// compat: IE11
|
||||
if (!Element.prototype.matches) {
|
||||
Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
||||
}
|
||||
|
||||
// compat: IE11
|
||||
if (!Element.prototype.closest) {
|
||||
Element.prototype.closest = function (s) {
|
||||
let el = this;
|
||||
|
||||
do {
|
||||
if (el.matches(s)) return el;
|
||||
el = el.parentElement || el.parentNode;
|
||||
} while (el !== null && el.nodeType === 1);
|
||||
return null;
|
||||
};
|
||||
}
|
|
@ -1,11 +1,5 @@
|
|||
// This sets up webpack's chunk loading to load resources from the 'public'
|
||||
// directory. This file must be imported before any lazy-loading is being attempted.
|
||||
|
||||
if (document.currentScript && document.currentScript.src) {
|
||||
const url = new URL(document.currentScript.src);
|
||||
__webpack_public_path__ = url.pathname.replace(/\/[^/]*?\/[^/]*?$/, '/');
|
||||
} else {
|
||||
// compat: IE11
|
||||
const script = document.querySelector('script[src*="/index.js"]');
|
||||
__webpack_public_path__ = script.getAttribute('src').replace(/\/[^/]*?\/[^/]*?$/, '/');
|
||||
}
|
||||
const url = new URL(document.currentScript.src);
|
||||
__webpack_public_path__ = url.pathname.replace(/\/[^/]*?\/[^/]*?$/, '/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue