show3DModel 判斷 launchViewerNoTools 是否存在

This commit is contained in:
dev01 2023-06-28 12:56:41 +08:00
parent ac2b16d127
commit 74f25324d9

View File

@ -1044,6 +1044,7 @@
} }
function show3DModel() { function show3DModel() {
if(typeof launchViewerNoTools != "undefined"){
launchViewerNoTools( launchViewerNoTools(
pageAct.urn, pageAct.urn,
(viewer) => { (viewer) => {
@ -1070,6 +1071,7 @@
} }
); );
} }
}
$(window).on("timeout:5m", function () { $(window).on("timeout:5m", function () {
console.log("五分鐘更新"); console.log("五分鐘更新");