Skip to content

Commit

Permalink
Enforce constraints for the Browser-client
Browse files Browse the repository at this point in the history
  • Loading branch information
nurlicht committed Jan 6, 2024
1 parent b4101e5 commit cb4861f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ if (typeof Deno !== 'undefined' && Deno.version) {
console.log('Node is defined.');
module.exports.App = App;
module.exports.InputDataParameters = InputDataParameters;
} else {
} else if (typeof window !== 'undefined' && typeof document !== 'undefined') {
console.log('Browser is defined.');
} else {
throw new Error('An unknown Javascript client was encountered.');
}

0 comments on commit cb4861f

Please # to comment.