Explorar el Código

Pass FreshRSS version to JS client side for extensions (#5902)

fix https://github.com/FreshRSS/FreshRSS/issues/5542
Alexandre Alapetite hace 2 años
padre
commit
203132b015
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/views/helpers/javascript_vars.phtml

+ 1 - 0
app/views/helpers/javascript_vars.phtml

@@ -28,6 +28,7 @@ echo htmlspecialchars(json_encode(array(
 			'extra.js' => @filemtime(PUBLIC_PATH . '/scripts/extra.js'),
 			'feed.js' => @filemtime(PUBLIC_PATH . '/scripts/feed.js'),
 		],
+		'version' => FRESHRSS_VERSION,
 	),
 	'shortcuts' => array(
 		'actualize' => @$s['actualize'],