2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-09-24 16:40:55 -06:00

Update Font Awesome to version 6

This commit is contained in:
Jonathan 2022-05-17 00:43:41 +02:00 committed by GitHub
parent a7fb5d8f06
commit b70eb6d607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1703,7 +1703,7 @@ function EasyMDE(options) {
if (!styleSheets[i].href) if (!styleSheets[i].href)
continue; continue;
if (styleSheets[i].href.indexOf('//maxcdn.bootstrapcdn.com/font-awesome/') > -1) { if (styleSheets[i].href.indexOf('//cdnjs.cloudflare.com/ajax/libs/font-awesome/') > -1) {
autoDownloadFA = false; autoDownloadFA = false;
} }
} }
@ -1712,7 +1712,7 @@ function EasyMDE(options) {
if (autoDownloadFA) { if (autoDownloadFA) {
var link = document.createElement('link'); var link = document.createElement('link');
link.rel = 'stylesheet'; link.rel = 'stylesheet';
link.href = 'https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css'; link.href = 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/fontawesome.min.css';
document.getElementsByTagName('head')[0].appendChild(link); document.getElementsByTagName('head')[0].appendChild(link);
} }