From 546df1e3e3b08c1789733c70e81869b29d7355d3 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 6 Apr 2016 13:13:46 +0300 Subject: [PATCH] Use HEAD /204 instead of HEAD / to get server time for timers --- js/90-timers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/90-timers.js b/js/90-timers.js index 8833a11..8580776 100644 --- a/js/90-timers.js +++ b/js/90-timers.js @@ -29,7 +29,7 @@ $(() => { }); if($('.timer').length > 0) { const xhr = new XMLHttpRequest(); - xhr.open('HEAD', '/'); + xhr.open('HEAD', '/204'); xhr.onload = () => { const srvtime = Date.parse(xhr.getResponseHeader('Date')); offset = Math.ceil((srvtime - Date.now()) / 1000); -- 2.39.2