jsf.js_next_gen 4.0.0-beta-12 → 4.0.0-beta-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1197,7 +1197,7 @@ class DomQuery {
1197
1197
  //this.globalEval(finalScripts.join("\n"));
1198
1198
  let joinedScripts = [];
1199
1199
  Stream_1.Stream.of(...finalScripts).each(item => {
1200
- if (item.nonce == 'evalText') {
1200
+ if (!item.nonce) {
1201
1201
  joinedScripts.push(item.evalText);
1202
1202
  }
1203
1203
  else {
@@ -1233,8 +1233,9 @@ class DomQuery {
1233
1233
  //due to changing the and order instead of relying on left to right
1234
1234
  //if jsf.js is already registered we do not replace it anymore
1235
1235
  if (whilteListed(src)) {
1236
+ //we run the collected scripts before running, the include
1236
1237
  evalCollectedScripts(finalScripts);
1237
- nonce != '' ? this.loadScriptEval(src, 0, "UTF-8", nonce) :
1238
+ (!!nonce) ? this.loadScriptEval(src, 0, "UTF-8", nonce) :
1238
1239
  //if no nonce is set we do not pass any once
1239
1240
  this.loadScriptEval(src, 0, "UTF-8");
1240
1241
  }
Binary file
Binary file