progress on adding version string to some css
This commit is contained in:
1 parent
4d5baa717d
commit
ed89a13fe6
2 files changed
+12
No files matched your search
@@ -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'));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user