mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 12:56:42 +02:00
Prepare for webOS & Tizen support
This commit is contained in:
@@ -24,3 +24,15 @@ export const STATES: BxStates = {
|
||||
|
||||
pointerServerPort: 9269,
|
||||
};
|
||||
|
||||
export function deepClone(obj: any): any {
|
||||
if ('structuredClone' in window) {
|
||||
return structuredClone(obj);
|
||||
}
|
||||
|
||||
if (!obj) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
return JSON.parse(JSON.stringify(obj));
|
||||
}
|
||||
|
Reference in New Issue
Block a user