fix ligatures feature check
This commit is contained in:
parent
b72576a720
commit
6e04293d6e
1 changed files with 8 additions and 3 deletions
|
@ -1394,9 +1394,14 @@ c3nav = {
|
|||
_material_icons_codepoints: null,
|
||||
load_material_icons_if_needed: function() {
|
||||
// load material icons codepoint for android 4.3.3 and other heccing old browsers
|
||||
var elem = document.createElement('span');
|
||||
elem.style.fontFeatureSettings = '"liga" 1';
|
||||
if (!elem.style.fontFeatureSettings) {
|
||||
var elem = document.createElement('span'),
|
||||
before = elem.style.fontFeatureSettings,
|
||||
ligaturesSupported = false;
|
||||
if (before !== undefined) {
|
||||
elem.style.fontFeatureSettings = '"liga" 1';
|
||||
ligaturesSupported = (elem.style.fontFeatureSettings !== before);
|
||||
}
|
||||
if (!ligaturesSupported) {
|
||||
$.get('/static/material-icons/codepoints', c3nav._material_icons_loaded);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue