commit some garbage

pull/1/head
ansuz 8 years ago
parent 364dae2882
commit 3cfd0a4326

@ -1,10 +1,12 @@
define([
'/api/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) {
e.setAttribute('href', e.getAttribute('data-rewrite-href'));
var href = e.getAttribute('data-rewrite-href');
href += (/\?/.test(href)?'&':'?') + urlArgs;
e.setAttribute('href', href);
});
});

Loading…
Cancel
Save