Guys I’ve been trying very hard to get polyfill / local development working for all the apps I’m making for the SAFE Browser and just setting this all up has proven to be the most difficult part
I have had help from @happybeing and @joshuef so far, and now I am running my code (using Demo Web App code for this example) from my Apache’s
/var/www/html/ folder and opened that localhost in my SAFE Browser. So I can see my demo web app running, but I can’t get any of the commands (auth is the first page that pops up on the demo app) to run
I am not even at the polyfill part yet, just trying to get a simple command running.
So I tried changing the
safeAuth.authorize…etc part in my app’s JS to
safejs.auth.authorize like this polyfill says. No luck. Tried lots of other thngs too.
Do I have to have a safe-js folder somewhere??
npm doesn’t even let me install safe-js.
Result of running
npm i safe-js:
~$ npm i safe-js /home/wook └── email@example.com npm WARN enoent ENOENT: no such file or directory, open '/home/wook/package.json' npm WARN wook No description npm WARN wook No repository field. npm WARN wook No README data npm WARN wook No license field.
sorry for all this mayhem…
just someone pleeease help me get polyfill running!!