Reload page sau khi nhấn nút close 3D view
This commit is contained in:
@@ -146,6 +146,7 @@ function closeViewer() {
|
||||
localStorage.removeItem('activeSceneToken');
|
||||
localStorage.removeItem('activeScenePitch');
|
||||
localStorage.removeItem('activeSceneYaw');
|
||||
localStorage.removeItem('activeTourId');
|
||||
|
||||
if (activeViewer) {
|
||||
try {
|
||||
@@ -153,6 +154,12 @@ function closeViewer() {
|
||||
} catch (e) {}
|
||||
activeViewer = null;
|
||||
}
|
||||
|
||||
// Đối với người dùng public (Guest), thực hiện reload trang để dọn dẹp các marker từ tour được chia sẻ
|
||||
const token = localStorage.getItem('jwt');
|
||||
if (!token) {
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user