summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-06 15:52:50 +0200
committerCode WvS <code-wvs@quantentunnel.de>2015-03-21 11:36:05 +0100
commite4f04d19635b68261560606268feb0df16fdf703 (patch)
treee9a7f1c677e95c9097ac3b562b76cd9b08d701bf /threads.js
parent800da44bc8cfd9c6d290ae07df4c420bd68ac6ec (diff)
downloadsnap-yow-e4f04d19635b68261560606268feb0df16fdf703.tar.gz
snap-yow-e4f04d19635b68261560606268feb0df16fdf703.zip
cherry-pick vibration 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 804c09a..fe9e3c4 100644
--- a/threads.js
+++ b/threads.js
@@ -2798,6 +2798,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
/*