Skip to content
Snippets Groups Projects
Unverified Commit c29fd84b authored by Diego Sampaio's avatar Diego Sampaio Committed by GitHub
Browse files

Merge pull request #10348 from goalifyplus/feature/fix-meteor-reload-issue

[FIX] fixing deprecated Meteor._reload.reload method
parents 8bd50a31 e8bfa310
No related merge requests found
......@@ -132,6 +132,7 @@
"Promise" : false,
"Random" : false,
"ReactiveVar" : false,
"Reload" : false,
"RocketChat" : true,
"RocketChatFile" : false,
"RoomHistoryManager" : false,
......
......@@ -188,7 +188,11 @@ Template.accountPreferences.onCreated(function() {
instance.clearForm();
if (reload) {
setTimeout(function() {
Meteor._reload.reload();
if (Meteor._reload && Meteor._reload.reload) { // make it compatible with old meteor
Meteor._reload.reload();
} else {
Reload._reload();
}
}, 1000);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment