[TASK] Change style in webkit correctly

This commit is contained in:
Xaver Maierhofer 2017-02-03 02:07:31 +01:00
parent ae9568b9ff
commit 22781b306c
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8

View File

@ -337,7 +337,9 @@ define(['map/clientlayer', 'map/labelslayer',
labelsLayer.updateLayer(); labelsLayer.updateLayer();
} }
if (e.layer.options.mode) { if (e.layer.options.mode) {
document.querySelector('.css-mode.' + e.layer.options.mode).media = ''; var newStyle = document.querySelector('.css-mode.' + e.layer.options.mode);
newStyle.media = '';
newStyle.appendChild(document.createTextNode(''));
labelsLayer.updateLayer(); labelsLayer.updateLayer();
} }
}); });