Skip to content

Commit ab3b66e

Browse files
fix: Self duped YNISON_STATE events from renderer to main
1 parent ac9b66c commit ab3b66e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/_next/static/chunks/6008-42bed03e2bd0b664.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6454,9 +6454,6 @@
64546454
window.onRemoteDeviceDisconnected = [];
64556455
class aS {
64566456
onYnisonStateUpdated(e) {
6457-
// Отправляем состояние Ynison в electronBridge
6458-
electronBridge.sendYnisonState({ rawData: e.state });
6459-
64606457
const isRemoteControlEnabled = window.ENABLE_YNISON_REMOTE_CONTROL;
64616458
const allowedStatuses1 = [
64626459
Z.FY.ENDED,
@@ -6480,6 +6477,11 @@
64806477
e.state.player_state.status.version.device_id ===
64816478
window.DEVICE_INFO?.device_id;
64826479

6480+
if (!selfStateDuped) {
6481+
// Отправляем состояние Ynison в main процесс
6482+
electronBridge.sendYnisonState({ rawData: e.state });
6483+
}
6484+
64836485
if (
64846486
isRemoteControlEnabled
64856487
? shouldApplyState &&

0 commit comments

Comments
 (0)