Skip to content

fix: replace bitwise OR with logical OR in waitTimeout handling (#401)#423

Open
Uday-Jav wants to merge 1 commit intoneutralinojs:mainfrom
Uday-Jav:fix-waittimeout-bug
Open

fix: replace bitwise OR with logical OR in waitTimeout handling (#401)#423
Uday-Jav wants to merge 1 commit intoneutralinojs:mainfrom
Uday-Jav:fix-waittimeout-bug

Conversation

@Uday-Jav
Copy link
Copy Markdown

@Uday-Jav Uday-Jav commented Mar 28, 2026

Fixes #401

Description

This PR fixes an incorrect use of the bitwise OR (|) operator in the waitForFrontendLibApp function.

The previous implementation used:
waitTimeout | 20000, which performs a bitwise operation and can lead to unexpected results.

Fix

Replaced the bitwise OR (|) with logical OR (||) to ensure proper fallback behavior when waitTimeout is undefined.

Impact

  • Ensures correct timeout value handling
  • Prevents unintended behavior due to bitwise operation
  • Improves code reliability

@Uday-Jav Uday-Jav changed the title fix: replace bitwise OR with logical OR in waitTimeout handling fix: replace bitwise OR with logical OR in waitTimeout handling (#401) Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Incorrect bitwise OR operator used for waitTimeout in frontendlib.js

1 participant