From 60e972627412bd5d38eee7418b1f1bd0ee04888a Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Mon, 27 Mar 2017 19:51:09 +0300 Subject: [PATCH] [WebUI] Replace `.values` method with `.map` as `.values` is unsupported in many browsers --- interface/js/app/history.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 02c277d2f..045b0636b 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -78,7 +78,10 @@ function($, _, Humanize) { } item.symbols[key].str = str; }); - item.symbols = Object.values(item.symbols). + item.symbols = Object.keys(item.symbols). + map(function(key) { + return item.symbols[key]; + }). sort(function(e1, e2) { return Math.abs(e1.score) < Math.abs(e2.score); }). -- 2.39.5