From 5bd357806fb0f3d0a9556dfb718f53bfb6af4fbb Mon Sep 17 00:00:00 2001 From: Gubolin Date: Sat, 6 Sep 2014 15:52:50 +0200 Subject: add vibrate block --- threads.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'threads.js') 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 /* -- cgit v1.3.1