Skip to content

Commit

Permalink
fix for multiple style tags in yml2xml.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mtinnes committed Dec 21, 2023
1 parent c29652e commit 0dc1342
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion projects/reveldigital/player-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions projects/reveldigital/player-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reveldigital/player-client",
"version": "1.0.5",
"version": "1.0.6",
"description": "Helper library for interfacing Angular apps with the Revel Digital player",
"scripts": {
"build": "tsc -p tsconfig.schematics.json",
Expand Down Expand Up @@ -36,4 +36,4 @@
"copyfiles": "file:../../../node_modules/copyfiles",
"typescript": "file:../../../node_modules/typescript"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function processYML(json, html) {
module.ele('Content', { type: 'html' }).ele({
'$':
htmlRoot.querySelector('style').toString() +
htmlRoot.querySelector('link').toString() +
htmlRoot.querySelectorAll('head > link[rel=stylesheet]').join('').toString() +
htmlRoot.querySelector('body').toString()
});

Expand Down
5 changes: 3 additions & 2 deletions projects/test-app/utils/yml2xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function processYML(json, html) {
display_name: val.display_name,
datatype: val.datatype,
default_value: val.default_value,
required: !!val.required
required: !!val.required,
multiple: !!val.multiple
});
if (val.datatype === 'enum') {
for (let option of val.options) {
Expand Down Expand Up @@ -99,7 +100,7 @@ function processYML(json, html) {
module.ele('Content', { type: 'html' }).ele({
'$':
htmlRoot.querySelector('style').toString() +
htmlRoot.querySelector('link').toString() +
htmlRoot.querySelectorAll('head > link[rel=stylesheet]').join('').toString() +
htmlRoot.querySelector('body').toString()
});

Expand Down

0 comments on commit 0dc1342

Please sign in to comment.