Skip to content

Fix async/await syntax error and remove unused config.js reference#61

Merged
MrAlders0n merged 2 commits intodevfrom
copilot/fix-syntax-error-in-wardrive
Dec 19, 2025
Merged

Fix async/await syntax error and remove unused config.js reference#61
MrAlders0n merged 2 commits intodevfrom
copilot/fix-syntax-error-in-wardrive

Conversation

Copy link
Contributor

Copilot AI commented Dec 19, 2025

Post-merge issues from PR #60: handleRxLogEvent used await without async declaration, and index.html referenced non-existent config.js.

Changes

  • wardrive.js: Added async to handleRxLogEvent function declaration
  • index.html: Removed <script src="content/config.js"></script> reference
// Before
function handleRxLogEvent(data, originalPayload, channelIdx, expectedChannelHash) {
  const decryptedMessage = await decryptGroupTextPayload(...);  // SyntaxError
}

// After
async function handleRxLogEvent(data, originalPayload, channelIdx, expectedChannelHash) {
  const decryptedMessage = await decryptGroupTextPayload(...);
}
Original prompt

I got error

Uncaught SyntaxError: Unexpected reserved word (at wardrive.js:1239:32)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…rence

Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix uncaught syntax error in wardrive.js Fix async/await syntax error and remove unused config.js reference Dec 19, 2025
Copilot AI requested a review from MrAlders0n December 19, 2025 04:48
@MrAlders0n MrAlders0n marked this pull request as ready for review December 19, 2025 04:48
@MrAlders0n MrAlders0n merged commit 80ba3ca into dev Dec 19, 2025
@MrAlders0n MrAlders0n deleted the copilot/fix-syntax-error-in-wardrive branch December 20, 2025 05:36
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.

2 participants