Content-Length: 261652 | pFad | https://github.com/electron/electron/commit/ab94340567cc50002d578f9c8e2bd883cd2984e5

B6 fix: check for single bluetooth listener (#32241) · electron/electron@ab94340 · GitHub
Skip to content

Commit ab94340

Browse files
fix: check for single bluetooth listener (#32241)
Co-authored-by: VerteDinde <khammond@slack-corp.com>
1 parent ca112e2 commit ab94340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/browser/api/web-contents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ WebContents.prototype._init = function () {
682682
});
683683

684684
this.on('select-bluetooth-device', (event, devices, callback) => {
685-
if (this.listenerCount('select-bluetooth-device') === 0) {
685+
if (this.listenerCount('select-bluetooth-device') === 1) {
686686
// Cancel it if there are no handlers
687687
event.preventDefault();
688688
callback('');

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/electron/electron/commit/ab94340567cc50002d578f9c8e2bd883cd2984e5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy