Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.

Commit 5828a16

Browse files
author
Ke, Mingze
committed
Added more methods for chrome.bluetooth
1 parent 6c8d7db commit 5828a16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎lib/chrome.bluetooth.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ chrome.bluetooth = chrome.bluetooth || (function (_api) {
55
var proxyRequest = _api.proxyRequest;
66

77
return {
8+
getAdapterState: proxyRequest('chrome.bluetooth.getAdapterState'),
89
getDevice: proxyRequest('chrome.bluetooth.getDevice'),
9-
getDevices: proxyRequest('chrome.bluetooth.getDevices')
10+
getDevices: proxyRequest('chrome.bluetooth.getDevices'),
11+
startDiscovery: proxyRequest('chrome.bluetooth.startDiscovery'),
12+
stopDiscovery: proxyRequest('chrome.bluetooth.stopDiscovery')
1013
};
1114

1215
}(chrome._api));

0 commit comments

Comments
 (0)