Skip to content

Commit d645ea1

Browse files
committed
fix: re-enable using the defaultPattern config for the initial iframe page load if defined
1 parent d1344d3 commit d645ea1

File tree

1 file changed

+4
-1
lines changed
  • packages/uikit-workshop/src/scripts/components/pl-viewport

1 file changed

+4
-1
lines changed

packages/uikit-workshop/src/scripts/components/pl-viewport/pl-viewport.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,10 @@ class IFrame extends BaseComponent {
348348
if (window.patternData) {
349349
patternParam = window.patternData.patternPartial;
350350
} else {
351-
patternParam = 'all'; // @todo: this should also be able to be dynamically set via PL config file
351+
patternParam =
352+
window.config && window.config.defaultPattern
353+
? window.config.defaultPattern
354+
: 'all';
352355
}
353356
}
354357

0 commit comments

Comments
 (0)