mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-13 03:16:21 +00:00
e4e80a2504
Eslint doesn't like the global return and fails to parse the trigger script file. Rewrite the script to avoid this and any globals while at it. Also use OnInitGame as the execution with an IIFE in global scope wouldn't guarantee when it will be executed or whether the timer component is already registered. Further don't concat the warning string as the extraction script for translation expects a literal. Ref: #7812 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>