Skip to content

Commit bf89ca3

Browse files
author
Blaine Schmeisser
committed
Create a resetDevices() method to reset the cached devices.
1 parent bcf562b commit bf89ca3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

BigRedButton.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,7 @@ BigRedButton.prototype.isLidDown = function() {
102102

103103
exports.BigRedButton = BigRedButton;
104104
exports.deviceCount = function () { return getAllDevices().length; }
105+
exports.resetDevices = function () {
106+
allDevices = null
107+
getAllDevices();
108+
}

0 commit comments

Comments
 (0)