Commit effabbb3 authored by Sebastian Pekarek's avatar Sebastian Pekarek
Browse files

ICalAlarm: Exception update

parent 205196c2
......@@ -529,7 +529,6 @@ Alarm attachment; used to set the alarm sound if type = audio. Defaults to "Bass
var cal = ical(),
event = cal.createEvent(),
// by url
event.createAlarm({
attach: 'https://example.com/notification.aud'
});
......
......@@ -173,7 +173,7 @@ var ICalAlarm = function(_data, event) {
}
else {
// @todo update readme url
throw '`attach` needs to be a valid formed string or an object. See https://github.com/sebbo2002/ical-generator#';
throw '`attach` needs to be a valid formed string or an object. See https://github.com/sebbo2002/ical-generator#attachstringobject-attach';
}
if(!attach.uri) {
......@@ -215,14 +215,6 @@ var ICalAlarm = function(_data, event) {
var tools = require('./_tools.js'),
g = 'BEGIN:VALARM\n';
/*
DURATION:PT15M
ATTACH;FMTTYPE=audio/basic:ftp://host.com/pub/sounds/bell-01.aud
*/
if(!data.type) {
throw 'No value for `type` in ICalAlarm given!';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment