<p>I choose to do it that deliberately so that it defaults to <code>http</code> if you are loading from a <code>file://</code> URL.</p>

<p>That is vendored code anyway, so any issue should be upstream at <a href="https://github.com/jfirebaugh/leaflet-osm">https://github.com/jfirebaugh/leaflet-osm</a> but not that making the change you suggest will cause a test failure precisely because the tests are loading from a <code>file:</code> URL.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/issues/700#issuecomment-34864418'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/1419053__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNzc0MTM0MywiZGF0YSI6eyJpZCI6MjU1MDIwMjd9fQ==--6d46e049729b1bf8941c20d2af53e7ca11eb5220.gif' height='1' width='1'></p>