-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Chrome on Android with web-serial-polyfill. (#144)
- Loading branch information
1 parent
67e327a
commit 265ece5
Showing
3 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ const alertDiv = document.getElementById("alertDiv"); | |
// To optimize use a CDN hosted version like | ||
// https://unpkg.com/[email protected]/bundle.js | ||
import { ESPLoader, FlashOptions, LoaderOptions, Transport } from "../../../lib"; | ||
import { serial } from "web-serial-polyfill"; | ||
if (!navigator.serial && navigator.usb) navigator.serial = serial; | ||
|
||
declare let Terminal; // Terminal is imported in HTML script | ||
declare let CryptoJS; // CryptoJS is imported in HTML script | ||
|