Преглед изворни кода

Fix global context (#3909)

Regression from https://github.com/FreshRSS/FreshRSS/pull/3906
Alexandre Alapetite пре 4 година
родитељ
комит
008cbfef2c
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      p/scripts/main.js

+ 3 - 1
p/scripts/main.js

@@ -35,7 +35,9 @@ function xmlHttpRequestJson(req) {
 // </Utils>
 
 // <Global context>
-let context;
+/* eslint-disable no-var */
+var context;
+/* eslint-enable no-var */
 
 (function parseJsonVars() {
 	const jsonVars = document.getElementById('jsonVars');