summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-06 15:52:50 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-06 15:52:50 +0200
commit5bd357806fb0f3d0a9556dfb718f53bfb6af4fbb (patch)
tree4d1739bc77a715d62eae4f813dfb732bbf4593a4 /threads.js
parent23664e86b4e92c74d7ed64152b66709e5b2e5253 (diff)
downloadsnap-5bd357806fb0f3d0a9556dfb718f53bfb6af4fbb.tar.gz
snap-5bd357806fb0f3d0a9556dfb718f53bfb6af4fbb.zip
add vibrate block
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/threads.js b/threads.js
index 335b5d0..c796642 100644
--- a/threads.js
+++ b/threads.js
@@ -2601,6 +2601,12 @@ Process.prototype.reportDate = function (datefn) {
return result;
};
+Process.prototype.doVibrate = function (seconds) {
+ if ("vibrate" in navigator) {
+ window.navigator.vibrate(seconds * 1000);
+ }
+};
+
// Process code mapping
/*