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 branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,7 @@ ...@@ -132,6 +132,7 @@
"Promise" : false, "Promise" : false,
"Random" : false, "Random" : false,
"ReactiveVar" : false, "ReactiveVar" : false,
"Reload" : false,
"RocketChat" : true, "RocketChat" : true,
"RocketChatFile" : false, "RocketChatFile" : false,
"RoomHistoryManager" : false, "RoomHistoryManager" : false,
......
...@@ -188,7 +188,11 @@ Template.accountPreferences.onCreated(function() { ...@@ -188,7 +188,11 @@ Template.accountPreferences.onCreated(function() {
instance.clearForm(); instance.clearForm();
if (reload) { if (reload) {
setTimeout(function() { setTimeout(function() {
Meteor._reload.reload(); if (Meteor._reload && Meteor._reload.reload) { // make it compatible with old meteor
Meteor._reload.reload();
} else {
Reload._reload();
}
}, 1000); }, 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