|
@@ -88,7 +88,7 @@ let shelterHistory = []
|
|
|
Potree.isIframeChild = window.parent!=window //子页面
|
|
|
if(Potree.isIframeChild){
|
|
|
let rootWin = Common.getRootWindow()
|
|
|
- rootWin.viewer.dispatchEvent({type:'createIframe', window}) //给祖先页面发送信息
|
|
|
+ rootWin && rootWin.viewer.dispatchEvent({type:'createIframe', window}) //给祖先页面发送信息
|
|
|
}
|
|
|
/* window.addEventListener('focus',()=>{
|
|
|
console.log('focus',window.winIndex)
|