This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
103 additions
and
39 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
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ <h1 id="msg">Loading...</h1> | |
</div> | ||
</body> | ||
|
||
<script type="text/javascript" src="https://unpkg.com/@microblink/[email protected].4/dist/photopay-sdk.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/@microblink/[email protected].5/dist/photopay-sdk.js"></script> | ||
<script type="text/javascript"> | ||
/** | ||
* PhotoPay In-browser SDK demo app which demonstrates how to: | ||
|
@@ -60,6 +60,14 @@ <h1 id="msg">Loading...</h1> | |
// 2. Create instance of SDK load settings with your license key | ||
const loadSettings = new PhotoPaySDK.WasmSDKLoadSettings( licenseKey ); | ||
|
||
/* [TEMPORARY FIX] | ||
* Use basic WebAssembly builds since most performant option requires server setup and unpkg.com, which is used | ||
* for examples, doesn't support COOP and COEP headers. | ||
* | ||
* For more information see "Integration" section in the official documentation. | ||
*/ | ||
loadSettings.wasmType = "BASIC"; | ||
|
||
// [OPTIONAL] Change default settings | ||
|
||
// Show or hide hello message in browser console when WASM is successfully loaded | ||
|
@@ -69,7 +77,7 @@ <h1 id="msg">Loading...</h1> | |
loadSettings.loadProgressCallback = progress => ( progressEl.value = progress ); | ||
|
||
// Set absolute location of the engine, i.e. WASM and support JS files | ||
loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected].4/resources/"; | ||
loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected].5/resources/"; | ||
|
||
// 3. Load SDK | ||
PhotoPaySDK.loadWasmModule( loadSettings ).then | ||
|
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 |
---|---|---|
|
@@ -516,10 +516,10 @@ | |
│ ├─ email: [email protected] | ||
│ ├─ path: node_modules/@babel/types | ||
│ └─ licenseFile: node_modules/@babel/types/LICENSE | ||
├─ @microblink/[email protected].4 | ||
├─ @microblink/[email protected].5 | ||
│ ├─ licenses: Custom: https://travis-ci.org/PhotoPay/photopay-in-browser.svg | ||
│ ├─ repository: https://github.com/PhotoPay/photopay-in-browser | ||
│ ├─ path: /opt/jenkins/android-arm7-sony-xperia-z/E0/core-webassembly-sdks/SDKs/PhotoPay/photopay-in-browser | ||
│ ├─ path: /Users/mbp/Projects/core-webassembly-sdks/SDKs/PhotoPay/photopay-in-browser | ||
│ └─ licenseFile: README.md | ||
├─ @nicolo-ribaudo/[email protected] | ||
│ ├─ licenses: MIT | ||
|
@@ -852,7 +852,7 @@ | |
│ ├─ url: sindresorhus.com | ||
│ ├─ path: node_modules/callsites | ||
│ └─ licenseFile: node_modules/callsites/license | ||
├─ [email protected].30001211 | ||
├─ [email protected].30001212 | ||
│ ├─ licenses: CC-BY-4.0 | ||
│ ├─ repository: https://github.com/ben-eb/caniuse-lite | ||
│ ├─ publisher: Ben Briggs | ||
|
@@ -1326,6 +1326,11 @@ | |
│ ├─ url: http://blog.izs.me/ | ||
│ ├─ path: node_modules/fs.realpath | ||
│ └─ licenseFile: node_modules/fs.realpath/LICENSE | ||
├─ [email protected] | ||
│ ├─ licenses: MIT | ||
│ ├─ repository: https://github.com/fsevents/fsevents | ||
│ ├─ path: node_modules/fsevents | ||
│ └─ licenseFile: node_modules/fsevents/LICENSE | ||
├─ [email protected] | ||
│ ├─ licenses: MIT | ||
│ ├─ repository: https://github.com/Raynos/function-bind | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.