Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser demo #7

Merged
merged 2 commits into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
browser-demo/dist/
61 changes: 0 additions & 61 deletions bls-demo.html

This file was deleted.

202 changes: 0 additions & 202 deletions bls-demo.js

This file was deleted.

14 changes: 1 addition & 13 deletions bls.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,16 +653,4 @@ const _blsSetupFactory = (createModule, getRandomValues) => {
return exports
}

// NodeJS export
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = _blsSetupFactory
} else if (typeof define === 'function' && define['amd']) {
define([], function() { return _blsSetupFactory })
} else if (typeof exports === 'object') {
exports["blsSetupFactory"] = _blsSetupFactory
}

// Browser export
if (typeof window === 'object') {
window.blsSetupFactory = _blsSetupFactory
}
module.exports = _blsSetupFactory
Loading