Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Commit

Permalink
Change camera access not supported message
Browse files Browse the repository at this point in the history
Co-Authored-By: Travis Reeder <treeder@gmail.com>
  • Loading branch information
fercarcedo and treeder authored Mar 30, 2020
1 parent ee3b13f commit 585995a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flutter_barcode_reader_web/lib/barcode_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class BarcodeScanPlugin {
if (window.navigator.mediaDevices == null) {
throw PlatformException(
code: 'CAMERA_ACCESS_NOT_SUPPORTED',
message: "Camera access not supported by browser2"
message: "Camera access not supported by browser"
);
}
}
Expand Down Expand Up @@ -154,4 +154,4 @@ class JsQRScanner {
class Promise<T> {
external Promise(void executor(void resolve(T result), Function reject));
external Promise then(void onFulfilled(T result), [Function onRejected]);
}
}

0 comments on commit 585995a

Please sign in to comment.