MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / __ssNotifyArgs

Function __ssNotifyArgs

app/rcc/api/SerialStudio.js:137–141  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

135// Notifications (bridge: __nc, NotificationCenter; Pro only). Accepts (title),
136// (title, subtitle), or (channel, title, subtitle).
137function __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}
142if (typeof __nc !== 'undefined') {
143 notify = function(level) {
144 var a = __ssNotifyArgs(Array.prototype.slice.call(arguments, 1));

Callers 1

SerialStudio.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected