In ECMAScript 5 strict mode, function declarations inside blocks
(if/for/while) are a syntax error. Since app.js uses 'use strict',
the legacySym function defined inside the if(isLegacyIOS) block could
prevent the entire script from parsing, killing connect() on all browsers.
Moved legacySym() to module scope. The if-block now only contains
the call sites, which is valid everywhere.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>