ontio / ontology-dapi

A lightweight Javascript library for interacting with Ontology node and Ontology wallets
15 stars 20 forks source link

client.registerClient({}); causes ReferenceError: window is not defined #20

Open vineetchawla opened 4 years ago

vineetchawla commented 4 years ago

In the backend node-js code, as soon as the code client.registerClient({}) is run, it results in the reference error as mentioned. The error is originating in file node_modules\ontology-dapi\lib\index.js:388.

The error was reproduced in windows as well as ubuntu OS.

MickWang commented 4 years ago

ontology-dapi only supports Chrome web environment now.