mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
9 lines
317 B
JavaScript
9 lines
317 B
JavaScript
if(Meteor.isClient){
|
|
// Local (client-only) collection
|
|
Errors = new Meteor.Collection(null);
|
|
}
|
|
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});
|
|
}
|