-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Description
Rocket.Chat Version: 0.56
Running Instances: 2+
DB Replicaset OpLog: enabled
Node Version: 4.5.0
This requires RC to be running in an iFrame. The URL structure looks like this:
Main page: www.example.com
RC iFrame: chat.example.com
iFrame domain set onload to value: example.com
In Administration -> Layout -> Custom Scripts:
Custom Script for logged in users:
document.domain = "example.com;"
Expected behaviour:
Able to call functions on window.parent.
Actual behaviour:
Channel message window is blank in IE & Edge.
Change to a different channel or Direct Message from the left menu and the main window remains blank.
Same behaviour when selecting any of the Administration options.
F12 console has no warnings or errors but has the following info:
Exception in defer callback: TypeError: Unable to set property 'scrollTop' of undefined or null reference at Anonymous function (https://chat.example.com/11e90e0d8a9fb6c11c233854bce945d7cee0b5c9.js?meteor_js_resource=true:246:28361) at e.Computation.prototype._compute (https://chat.example.com/11e90e0d8a9fb6c11c233854bce945d7cee0b5c9.js?meteor_js_resource=true:84:2301) at e.Computation (https://chat.example.com/11e90e0d8a9fb6c11c233854bce945d7cee0b5c9.js?meteor_js_resource=true:84:1263) at e.autorun (https://chat.example.com/11e90e0d8a9fb6c11c233854bce945d7cee0b5c9.js?meteor_js_resource=true:84:4209) at Anonymous function (https://chat.example.com/11e90e0d8a9fb6c11c233854bce945d7cee0b5c9.js?meteor_js_resource=true:246:27258) at withValue (https://chat.example.com/11e90e0d8a9fb6c11c233854bce945d7cee0b5c9.js?meteor_js_resource=true:3:7157) at Anonymous function (https://chat.example.com/11e90e0d8a9fb6c11c233854bce945d7cee0b5c9.js?meteor_js_resource=true:3:2919) at Anonymous function (https://chat.example.com/11e90e0d8a9fb6c11c233854bce945d7cee0b5c9.js?meteor_js_resource=true:3:7413) 11e90e0d8a9fb6c11c233854bce945d7cee0b5c9.js (3,5837)
Ideally there would be a startup option to set the document.domain which can be set by RC during startup.