progress on adding version string to some css

This commit is contained in:
ansuz
2017-03-29 12:55:36 +02:00
parent 4d5baa717d
commit ed89a13fe6
2 changed files with 12 additions and 0 deletions

10
www/common/rewrite-css.js Normal file
View File

@@ -0,0 +1,10 @@
define([
'/api/config',
], function (Config) {
if (!(Config && Config.requireConf && Config.requireConf.urlArgs)) { return; }
document.querySelectorAll('link[rel="stylesheet"][data-rewrite-href]').forEach(function (e) {
e.setAttribute('href', e.getAttribute('data-rewrite-href'));
});
});