Merge pull request #442 from yemel/fix/rename-flashmessage
Rename flashMessage variable
This commit is contained in:
commit
3a2cb6ff56
9 changed files with 23 additions and 23 deletions
|
|
@ -19,7 +19,7 @@ angular.module('copay.controllerUtils')
|
|||
video.close();
|
||||
// Clear rootScope
|
||||
for (var i in $rootScope) {
|
||||
if (i.charAt(0) != '$' && i != 'flashMessage') {
|
||||
if (i.charAt(0) != '$') {
|
||||
delete $rootScope[i];
|
||||
}
|
||||
}
|
||||
|
|
@ -50,7 +50,7 @@ angular.module('copay.controllerUtils')
|
|||
$rootScope.$digest();
|
||||
};
|
||||
w.on('badMessage', function(peerId) {
|
||||
$rootScope.flashMessage = {
|
||||
$rootScope.$flashMessage = {
|
||||
type: 'error',
|
||||
message: 'Received wrong message from peer id:' + peerId
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue