summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-08 12:27:01 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-08 12:27:01 +0200
commita7b3c537edf83b8415716f930fd3fe518638c4db (patch)
treeab92fea0390ee62aab2b55dab2bd2e829a6f033c /threads.js
parent8433b79d9363dea79e139cbdc3a9811495694753 (diff)
downloadsnap-a7b3c537edf83b8415716f930fd3fe518638c4db.tar.gz
snap-a7b3c537edf83b8415716f930fd3fe518638c4db.zip
add notification blocks
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/threads.js b/threads.js
index 3e50686..7616b88 100644
--- a/threads.js
+++ b/threads.js
@@ -2189,6 +2189,20 @@ Process.prototype.reportTextSplit = function (string, delimiter) {
return new List(str.split(del));
};
+// Process notification operations
+
+Process.prototype.doNotify = function (title, content) {
+ // TODO webkitNotification
+ if (window.plugin) {
+ if (window.plugin.notification) {
+ window.plugin.notification.local.add({
+ message: content,
+ title: title
+ });
+ }
+ }
+};
+
// Process debugging
Process.prototype.alert = function (data) {