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:
parent
a7fb5d8f06
commit
b70eb6d607
@ -1703,7 +1703,7 @@ function EasyMDE(options) {
|
||||
if (!styleSheets[i].href)
|
||||
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;
|
||||
}
|
||||
}
|
||||
@ -1712,7 +1712,7 @@ function EasyMDE(options) {
|
||||
if (autoDownloadFA) {
|
||||
var link = document.createElement('link');
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user