Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix: use standard API to get JSON data from script tag (#624)

Guilherme Oenning004cadbdf4da
diff --git a/public/services/fider.ts b/public/services/fider.ts
index fc8bb968b..ff818c074 100644
--- a/public/services/fider.ts
+++ b/public/services/fider.ts
@@ -40,7 +40,7 @@ export class FiderImpl {
public initialize = (): FiderImpl => {
const el = document.getElementById("server-data");
- const data = el ? JSON.parse(el.innerText) : {};
+ const data = el ? JSON.parse(el.textContent || el.innerText) : {};
this.pSettings = data.__settings;
this.pSession = new FiderSession(data);
return this;