Browse Source

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

fix https://github.com/FreshRSS/FreshRSS/issues/5542
Alexandre Alapetite 2 years ago
parent
commit
203132b015
1 changed files with 1 additions and 0 deletions
  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'],