Skip to content

Commit 51df7e0

Browse files
ignore exceptions in dismiss
1 parent 8040ff8 commit 51df7e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/js/directives/qrScanner.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,13 @@ angular.module('copayApp.directives')
129129

130130
$scope.cancel = function() {
131131
_scanStop();
132-
$modalInstance.dismiss('cancel');
132+
try{
133+
$modalInstance.dismiss('cancel');
134+
}
135+
catch(e){
136+
e.bIgnore = true;
137+
throw e;
138+
}
133139
};
134140
};
135141

0 commit comments

Comments
 (0)