Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert extra branding logic in includes.js #94

  • Loading branch information...
commit cf398bf6172085883a9392498d79900317657e20 1 parent bdaf05f
Ovidiu Cherecheș skidding authored
Showing with 12 additions and 3 deletions.
  1. +12 −3 includes.js
15 includes.js
View
@@ -122,8 +122,17 @@ function includeStaticFilesInBundles_Development() {
* (#custom-css).
*/
function includeBranding() {
- document.write("<link rel='stylesheet' id='custom-css' " +
- "href='/assets/custom.css'/>");
+
+ if (App.EXTRA_BRANDING) {
+ var id = "'custom-css' ";
+ for(var i = 0; i < App.EXTRA_BRANDING.length;i++) {
+ if (i > 0) {
+ id = "'custom-css-" + i + "' ";
+ }
+ document.write("<link rel='stylesheet' id=" + id +
+ "href= '" + App.EXTRA_BRANDING[i] + "'/>");
+ }
+ }
}
/*
@@ -209,4 +218,4 @@ function isMobileDevice() {
overrideGeneralConfigWithUserConfig();
replaceReferencesFromConfigVariables();
-includeCssAndJs();
+includeCssAndJs();
Please sign in to comment.
Something went wrong with that request. Please try again.