summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
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
/*