progress on adding version string to some css

pull/1/head
ansuz 8 years ago
parent 4d5baa717d
commit ed89a13fe6

@ -3,4 +3,6 @@ define([], function () {
// fix up locations so that relative urls work.
require.config({ baseUrl: window.location.pathname });
require([document.querySelector('script[data-bootload]').getAttribute('data-bootload')]);
require(['/common/rewrite-css.js']);
});

@ -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'));
});
});
Loading…
Cancel
Save