mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 11:01:38 -05:00
13 lines
359 B
JavaScript
13 lines
359 B
JavaScript
![]() |
if(Meteor.isClient){
|
||
|
|
||
|
throwError = function(message, type){
|
||
|
type = (typeof type === 'undefined') ? 'error': type;
|
||
|
// Store errors in the 'Errors' local collection
|
||
|
Errors.insert({message:message, type:type, seen: false, show:true});
|
||
|
};
|
||
|
|
||
|
clearSeenErrors = function(){
|
||
|
Errors.update({seen:true}, {$set: {show:false}}, {multi:true});
|
||
|
};
|
||
|
|
||
|
}
|