generated from ranajahanzaib/typescript-package-template
-
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.
Merge pull request #82 from 0chain/ashu/ssr-support
- Loading branch information
Showing
11 changed files
with
4,071 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zerochain/zus-sdk": patch | ||
--- | ||
|
||
SSR support |
Submodule next
updated
5 files
+0 −3,494 | package-lock.json | |
+1 −2 | package.json | |
+1 −1 | pages/_document.tsx | |
+ − | public/zcn.wasm | |
+0 −4,652 | yarn.lock |
Submodule website
updated
10 files
+1 −4 | .github/workflows/dev-zus-website-cicd.yaml | |
+1 −5 | .github/workflows/prod-zus-example-website.yaml | |
+914 −914 | dist/assets.js | |
+1 −0 | dist/index.html | |
+909 −932 | dist/main.js | |
+2 −2 | package.json | |
+91 −3 | src/assets.js | |
+7 −3 | src/constant.js | |
+2 −1 | tsconfig.json | |
+0 −4,211 | yarn.lock |
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 |
---|---|---|
|
@@ -739,13 +739,13 @@ export const getTransactionResponse = (data: TxnData) => { | |
}; | ||
|
||
export const getBls = () => { | ||
if (!globalCtx.bls) { | ||
if (!globalCtx().bls) { | ||
throw new Error( | ||
'window.bls unavailable. Add `<script src="https://cdn.jsdelivr.net/gh/herumi/[email protected]/browser/bls.js"></script>` before accessing this' | ||
); | ||
} | ||
|
||
return globalCtx.bls; | ||
return globalCtx().bls; | ||
}; | ||
|
||
/** | ||
|
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
Oops, something went wrong.