Skip to content

Commit

Permalink
make some plugins simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlui committed Sep 4, 2015
1 parent ba4d848 commit c82256f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file not shown.
3 changes: 1 addition & 2 deletions www/plugins/Console.js
@@ -1,6 +1,5 @@
console = {
log: function (string) {
Queue.push(Task.init(Queue.length));
window.webkit.messageHandlers.BlackHawk.postMessage({className: 'Console', functionName: 'log', taskId: Queue.length - 1, data: string});
window.webkit.messageHandlers.BlackHawk.postMessage({className: 'Console', functionName: 'log', data: string});
}
}
2 changes: 1 addition & 1 deletion www/plugins/Vibration.js
@@ -1,3 +1,3 @@
navigator.vibrate = function() {
window.webkit.messageHandlers.BlackHawk.postMessage({className: 'Vibration', functionName: 'vibrate', taskId: 0});
window.webkit.messageHandlers.BlackHawk.postMessage({className: 'Vibration', functionName: 'vibrate'});
}

0 comments on commit c82256f

Please sign in to comment.