Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
fix disableWebusb method (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 authored Feb 10, 2020
1 parent 6b568b2 commit 18c7f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ export const initTransport = async (settings: ConnectSettings) => {

const disableWebUSBTransport = async () => {
if (!_deviceList) return;
if (_deviceList.transportType() !== 'webusb') return;
if (_deviceList.transportType() !== 'WebUsbPlugin') return;
// override settings
const settings = DataManager.getSettings();
settings.webusb = false;
Expand Down

0 comments on commit 18c7f2f

Please sign in to comment.