Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Fixed issue with SSR for private sites.

Matt Robertsde083b0b7e5a
diff --git a/esbuild-shim.js b/esbuild-shim.js
index f63a6f701..c77a90478 100644
--- a/esbuild-shim.js
+++ b/esbuild-shim.js
@@ -27,6 +27,13 @@ global.navigator = navigator
global.window = window
global.document = document
+// Polyfill URLSearchParams (which is a constructor). Just add a dummy "get" method that returns an empty string
+global.URLSearchParams = class {
+ get() {
+ return ""
+ }
+}
+
// Intl polyfill is required until v8go supports Intl
class NoopFormat {
format(arg0) {