| 135 | // Notifications (bridge: __nc, NotificationCenter; Pro only). Accepts (title), |
| 136 | // (title, subtitle), or (channel, title, subtitle). |
| 137 | function __ssNotifyArgs(args) { |
| 138 | if (args.length <= 1) return ['Dashboard', args[0] || '', '']; |
| 139 | if (args.length === 2) return ['Dashboard', args[0] || '', args[1] || '']; |
| 140 | return [args[0] || '', args[1] || '', args[2] || '']; |
| 141 | } |
| 142 | if (typeof __nc !== 'undefined') { |
| 143 | notify = function(level) { |
| 144 | var a = __ssNotifyArgs(Array.prototype.slice.call(arguments, 1)); |