commit some garbage
parent
364dae2882
commit
3cfd0a4326
@ -1,10 +1,12 @@
|
|||||||
define([
|
define([
|
||||||
'/api/config',
|
'/api/config',
|
||||||
], function (Config) {
|
], function (Config) {
|
||||||
if (!(Config && Config.requireConf && Config.requireConf.urlArgs)) { return; }
|
var urlArgs = Config && Config.requireConf && Config.requireConf.urlArgs;
|
||||||
|
if (!urlArgs) { return; }
|
||||||
document.querySelectorAll('link[rel="stylesheet"][data-rewrite-href]').forEach(function (e) {
|
document.querySelectorAll('link[rel="stylesheet"][data-rewrite-href]').forEach(function (e) {
|
||||||
e.setAttribute('href', e.getAttribute('data-rewrite-href'));
|
var href = e.getAttribute('data-rewrite-href');
|
||||||
|
href += (/\?/.test(href)?'&':'?') + urlArgs;
|
||||||
|
e.setAttribute('href', href);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue