PhantomJS: Fix rendering of panels using Prometheus datasource

In 043bb59 a URLSearchParams usage was introduced which is not supported by PhantomJS. @babel/polyfill(deprecated) does not contain polyfill for URLSearchParams, hence the code (and Prometheus graphs rendering) was failing in PhantomJS environment.

The solution is to add https://www.npmjs.com/package/url-search-params-polyfill that takes care of the URLSearchParams
This commit is contained in:
Dominik Prokop
2020-01-23 13:10:38 +01:00
committed by GitHub
parent 87af7d9987
commit cdfac32dfd
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -268,6 +268,7 @@
"tether-drop": "https://github.com/torkelo/drop/tarball/master",
"tinycolor2": "1.4.1",
"tti-polyfill": "0.2.2",
"url-search-params-polyfill": "7.0.1",
"whatwg-fetch": "3.0.0",
"xss": "1.0.3"
},