@daeryun/dr_components 0.8.28 → 0.8.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -421,6 +421,9 @@ function retryable(fn_1) {
|
|
|
421
421
|
*/
|
|
422
422
|
export function initializeDaeryuntalk(hashValue, onWebSocketConnected, onWebSocketMessage, version) {
|
|
423
423
|
return __awaiter(this, void 0, void 0, function* () {
|
|
424
|
+
if (typeof window !== 'undefined' && hashValue) {
|
|
425
|
+
localStorage.removeItem('daeryunchatinquirytoken');
|
|
426
|
+
}
|
|
424
427
|
console.log('[Daeryuntalk 초기화 시작] 전체 흐름 실행', version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
|
|
425
428
|
try {
|
|
426
429
|
console.log('[Daeryuntalk 초기화] 전체 흐름 시작');
|
|
@@ -528,6 +528,10 @@ export async function initializeDaeryuntalk(
|
|
|
528
528
|
socket: WebSocket;
|
|
529
529
|
hashAuth: any;
|
|
530
530
|
}> {
|
|
531
|
+
|
|
532
|
+
if (typeof window !== 'undefined' && hashValue) {
|
|
533
|
+
localStorage.removeItem('daeryunchatinquirytoken');
|
|
534
|
+
}
|
|
531
535
|
console.log(
|
|
532
536
|
'[Daeryuntalk 초기화 시작] 전체 흐름 실행',
|
|
533
537
|
version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`
|