mirror of https://github.com/ColorlibHQ/AdminLTE
Fix a mini sidebar bug when embedding admin-lte into iframe (#4799)
When embedding whole admin-lte page into a iframe, mini sidebar will display without content.pull/4962/head
parent
00525c1371
commit
c7fe21050c
|
@ -272,7 +272,7 @@ class IFrame {
|
|||
}
|
||||
|
||||
_initFrameElement() {
|
||||
if (window.frameElement && this._config.autoIframeMode) {
|
||||
if (window.frameElement && this._config?.autoIframeMode) {
|
||||
const $body = $('body')
|
||||
$body.addClass(CLASS_NAME_IFRAME_MODE)
|
||||
|
||||
|
|
Loading…
Reference in New Issue