Browse Source

Revert "add some gzip emoticons plumbing"

This reverts commit b3f43801a99e0b22346112c9d3f2c5ee6097dca9.
Andrew Dolgov 2 years ago
parent
commit
eba22a03b5
3 changed files with 1 additions and 6 deletions
  1. 0 1
      backend.php
  2. 0 2
      emoticons/Makefile
  3. 1 3
      js/tt-irc.js

+ 0 - 1
backend.php

@@ -379,7 +379,6 @@
 		$rv["uniqid"] = uniqid();
 		$rv["emoticons"] = [];
 		$rv["emoticons_mtime"] = is_readable(EMOTICONS_MAP) ? filemtime(EMOTICONS_MAP) : -1;
-		$rv["emoticons_gzipped"] = is_readable(EMOTICONS_MAP . ".gz");
 		$rv["csrf_token"] = $_SESSION["csrf_token"];
 
 		print json_encode($rv);

+ 0 - 2
emoticons/Makefile

@@ -1,2 +0,0 @@
-emoticons.json.gz: emoticons.json
-	gzip < $^ > [email protected]

+ 1 - 3
js/tt-irc.js

@@ -703,9 +703,7 @@ function init_second_stage(params) {
 	csrf_token = params.csrf_token;
 
 	if (params.emoticons_mtime) {
-		var filename = "emoticons/emoticons.json";
-
-		fetch(filename + "?" + params.emoticons_mtime).then(function(resp) {
+		fetch("emoticons/emoticons.json?" + params.emoticons_mtime).then(function(resp) {
 			return resp.json();
 		}).then(function(json) {
 			$.each(Object.keys(json), function(i, k) {