Fixed identity exception
This commit is contained in:
parent
63b55c0e25
commit
e2a5ff8f8d
1 changed files with 8 additions and 3 deletions
|
@ -41,9 +41,14 @@ namespace TSIdentityHelper {
|
||||||
|
|
||||||
export function unwarpString(str) : string {
|
export function unwarpString(str) : string {
|
||||||
if(str == "") return "";
|
if(str == "") return "";
|
||||||
let message: string = Pointer_stringify(str);
|
try {
|
||||||
functionDestroyString(str);
|
let message: string = Pointer_stringify(str);
|
||||||
return message;
|
functionDestroyString(str);
|
||||||
|
return message;
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loadIdentity(key: string) : TeamSpeakIdentity {
|
export function loadIdentity(key: string) : TeamSpeakIdentity {
|
||||||
|
|
Loading…
Add table
Reference in a new issue