Comparing version 3.1.0 to 3.2.0
@@ -12,3 +12,4 @@ /** | ||
//metrics = require('app:metrics'), | ||
linkCSS; | ||
$linkCSS = document.createElement('link'), | ||
$style; | ||
@@ -19,9 +20,15 @@ | ||
linkCSS = document.createElement('link'); | ||
linkCSS.rel = 'stylesheet'; | ||
linkCSS.href = window.core.theme.path + app.metrics.height + '.css' + (DEVELOP ? '?' + Date.now() : ''); | ||
document.head.appendChild(linkCSS); | ||
$linkCSS = document.createElement('link'); | ||
$linkCSS.rel = 'stylesheet'; | ||
$linkCSS.href = window.core.theme.path + app.metrics.height + '.css' + (DEVELOP ? '?' + Date.now() : ''); | ||
document.head.appendChild($linkCSS); | ||
if ( core.theme.vars && core.theme.vars.bodyBgFilename ) { | ||
$style = document.createElement('style'); | ||
$style.innerText = 'body, .theme-page-background { background: url("' + core.theme.vars.bodyBgFilename.value + '"); }'; | ||
document.head.appendChild($style); | ||
} | ||
// public | ||
module.exports = linkCSS; | ||
module.exports = $linkCSS; |
{ | ||
"name": "mag-app", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "MAG SDK application core.", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21467
579