cazala / coin-hive-stratum

use CoinHive's JavaScript miner on any stratum pool
http://npmjs.com/package/coin-hive-stratum
417 stars 461 forks source link

Strange behavior chrome + firefox error via now.sh #104

Open mport88 opened 6 years ago

mport88 commented 6 years ago

Sometimes I get an error in the chrome console (sometimes there are no error and everything is fine). 1

In the fox does not work at all: 2

any suggestions?

cazala commented 6 years ago

It looks like the m.js file wasn't loaded at all.

cazala commented 6 years ago

if you open the Network tab in the console, and refresh the page, you should see the request that goes to your github page's m.js, is it responding back?

cazala commented 6 years ago

You are using your the github pages assets, right? Otherwise the CH object doesn't exist.

mport88 commented 6 years ago

sure. I have 200 OK -> m.js in any case, the file is loaded 100% Anyway, the fox displays an error in the syntax and this already indicates that the file is being loaded. 3

cazala commented 6 years ago

mm I'm using your m.js with my proxy and it's working for me:

<script src="https://mport88.github.io/my-proxy/m.js?proxy=wss://ws.caza.la"></script>
<script>
  var miner = CH.Anonymous('monero-address');
  miner.setThrottle(0.9);
  miner.start();
</script>
Chrome 62.0.3202.94 - MacOS X El Capitan
mport88 commented 6 years ago

oook, so what about the firefox?

cazala commented 6 years ago

mm working fine on Firefox 57.0.1 (64-bit)...

cazala commented 6 years ago

what happens when you try it with your assets and my proxy? like in the example i posted above.

mport88 commented 6 years ago

@cazala

mozilla firefox 2017-12-14 22 35 51 through your link.

live website firefox - 57.0.2 (64 bit)

ask2tam commented 6 years ago

When running my implementation and also the implementation above i got this error:

image

what´s wrong, how to fix it...

cazala commented 6 years ago

where are you running that? on localhost? on a live website?

which platform + browser and version?

ask2tam commented 6 years ago

Windows 7 Enterprise SP1 - Chrome Version 53.0.2785.143 m (64-bit)

mport88 commented 6 years ago

@cazala so it seems the issue only on the win os. I tried mac os and ubuntu and everything works fine for me.

cazala commented 6 years ago

okay, that makes it more difficult for me to debug :/ I don't have access to a windows PC

mport88 commented 6 years ago

@cazala VB or VMware as an option