From a71db95159f718b9d8319355c862b5f1c9efe287 Mon Sep 17 00:00:00 2001 From: Fritz Date: Thu, 15 Mar 2018 14:46:57 +0900 Subject: [PATCH] Make google_search_features.js work on pages without CSS --- google_search_features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google_search_features.js b/google_search_features.js index b75aa82..56cff5b 100644 --- a/google_search_features.js +++ b/google_search_features.js @@ -95,7 +95,7 @@ const BlinkFeatureNameToCaniuseName = { * @param {string} propName Property name to filter on. * @return {!Array} unique array of items */ -function uniqueByProperty(items, propName) { +function uniqueByProperty(items = [], propName) { const posts = Array.from(items.reduce((map, item) => { return map.set(item[propName], item); }, new Map()).values());