Skip to content

Commit 58a786e

Browse files
committed
refactor: update UIKit footer so JS always loads — fix to address Pattern-specific UI like accordions not working when patterns are viewed as a standalone HTML page
1 parent bda3877 commit 58a786e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/uikit-workshop/views/partials/general-footer.mustache

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@
4949
/*! loadJS: load a JS file asynchronously. [c]2014 @scottjehl, Filament Group, Inc. (Based on http://goo.gl/REQGQ by Paul Irish). Licensed MIT */
5050
!function(e){var t=function(t,n){"use strict";var o=e.document.getElementsByTagName("script")[0],r=e.document.createElement("script");return r.src=t,r.async=!0,o.parentNode.insertBefore(r,o),n&&"function"==typeof n&&(r.onload=n),r};"undefined"!=typeof module?module.exports=t:e.loadJS=t}("undefined"!=typeof global?global:this);
5151
52-
(function() {
53-
if (self != top) {
54-
loadJS('../../styleguide/js/patternlab-pattern.js');
55-
}
56-
})();
52+
// always load Pattern-specific JS so UI like accordions, etc can continue to work even when viewed as a standalone HTML page
53+
loadJS('../../styleguide/js/patternlab-pattern.js');
5754
</script>

0 commit comments

Comments
 (0)