mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-21 15:29:30 -07:00
The lkg object shouldn't be retrieved from the device or spoofed unless holoplay is enabled.
This commit is contained in:
@@ -80,7 +80,10 @@ const interpretDevice = (device) => {
|
||||
};
|
||||
};
|
||||
|
||||
export default async (useRecordedDevice = false) => {
|
||||
export default async (useHoloplay = false, useRecordedDevice = false) => {
|
||||
if (!useHoloplay) {
|
||||
return interpretDevice(null);
|
||||
}
|
||||
const detectedDevice = await getDetectedDevice;
|
||||
if (detectedDevice == null && useRecordedDevice) {
|
||||
return interpretDevice(recordedDevice);
|
||||
|
||||
Reference in New Issue
Block a user