Replace document.origin with window.location.origin

document.origin is not a thing on firefox
pull/21833/head
David Baker 2018-04-26 10:43:52 +01:00
parent 78d836e607
commit 27b7daca5b
1 changed files with 1 additions and 1 deletions

View File

@ -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 (
<span className="mx_MFileBody">
<div className="mx_MFileBody_download">