Skip to content

Commit

Permalink
Possibly fix firefox event messaging
Browse files Browse the repository at this point in the history
Thanks to Tulsow on discord for reporting
  • Loading branch information
qsniyg committed Jan 19, 2024
1 parent 8363575 commit c45b1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ var $$IMU_EXPORT$$;
message.imu = true;

var wrapped_message = {};
wrapped_message[imu_message_key] = JSON_parse(JSON_stringify(message));
wrapped_message[imu_message_key] = serialize_event(message);

if (!specified_window) {
for (var i = 0; i < window.frames.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ var $$IMU_EXPORT$$;
}
message.imu = true;
var wrapped_message = {};
wrapped_message[imu_message_key] = JSON_parse(JSON_stringify(message));
wrapped_message[imu_message_key] = serialize_event(message);
if (!specified_window) {
for (var i = 0; i < window.frames.length; i++) {
try {
Expand Down

0 comments on commit c45b1ed

Please sign in to comment.