sync/www/js
calzoneman 6e416fea8a Add a hack to detect distrust of Let's Encrypt
Many older devices do not support the Let's Encrypt CA, for various
reasons.  This causes connection issues for sites using Let's Encrypt to
support HTTPS connections.  This commit adds a hack that can be enabled
with a switch in callbacks.js to try to detect when the user's browser
does not trust the certificate and permit the user to connect to an
insecure endpoint instead.

Unfortunately, the AJAX API does not allow to distinguish between *why*
a request fails, so the best we can do is detect that the HTTPS request
failed, try to make a request over plain HTTP, and if it works, assume
the HTTPS request failed due to a certificate error.  It's not 100%
foolproof since the HTTPS endpoint could just be down for some reason,
but it should work well enough in most cases.

Closes #602
2016-07-17 16:30:35 -07:00
..
acp.js Add a signature to announcements 2016-07-14 23:25:17 -07:00
callbacks.js Add a hack to detect distrust of Let's Encrypt 2016-07-17 16:30:35 -07:00
chart.js Directory cleanup 2014-02-18 22:00:56 -06:00
data.js Allow users to strip images from chat. 2016-07-14 23:37:29 -07:00
froogaloop.min.js Static content caching 2014-02-23 23:27:07 -06:00
jquery-1.11.0.min.js jquery cdn sucks 2015-02-10 23:07:57 -06:00
jquery-ui.js jquery cdn sucks 2015-02-10 23:07:57 -06:00
paginator.js Add emote search, sort toggle 2015-05-13 12:17:32 -05:00
player.js Add vidme support (#568) 2016-06-25 17:09:48 -07:00
sc.js Initial soundcloud implementation 2015-06-16 07:39:39 -04:00
theme.js Reduce the number of places the default theme is hardcoded from 6 to 1. 2016-07-08 19:01:31 -07:00
ui.js Make modflair setting persistent from button too. 2016-07-11 22:14:26 -07:00
util.js Merge pull request #598 from Xaekai/imagestrip 2016-07-14 23:44:49 -07:00
video.js Upgrade to video.js 5.0 2015-10-17 18:45:13 -07:00