From 53528f338a6a93522ecf6f0efdc8e01cb8b3d776 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 26 Apr 2018 10:43:52 +0100 Subject: [PATCH] Replace document.origin with window.location.origin document.origin is not a thing on firefox --- src/components/views/messages/MFileBody.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/messages/MFileBody.js b/src/components/views/messages/MFileBody.js index bd8a220571..d9ce61582e 100644 --- a/src/components/views/messages/MFileBody.js +++ b/src/components/views/messages/MFileBody.js @@ -337,7 +337,7 @@ module.exports = React.createClass({ if (this.context.appConfig && this.context.appConfig.cross_origin_renderer_url) { renderer_url = this.context.appConfig.cross_origin_renderer_url; } - renderer_url += "?origin=" + encodeURIComponent(document.origin); + renderer_url += "?origin=" + encodeURIComponent(window.location.origin); return (