ztizzlegaming / CSGOWinBig

Open-source Counter-Strike: Global Offensive jackpot betting website.
MIT License
175 stars 105 forks source link

Fix for Firefox deposit buttons not working. #32

Open TheAnthonyNL opened 9 years ago

TheAnthonyNL commented 9 years ago

Due some firefox changes i decided to fix this problem of not working buttons.

replace line 149 of script.js: https://github.com/ztizzlegaming/CSGOWinBig/blob/master/src/script.js#L149

with following code:

if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1)
            {
                window.open('your steam trade offer url of your bot', '_blank');
                console.log('firefox');
                }else{
                $('<a>').attr('href', 'your steam trade offer url of your bot').attr('target', '_blank')[0].click();            
                console.log('not firefox');
            }
andrewda commented 9 years ago

Create a PR?

RodolfoMota commented 9 years ago

but is the button deposit dont work in all the cases i think

TheAnthonyNL commented 9 years ago

@krozs what you mean?

RodolfoMota commented 9 years ago

nvm, work

RatexIndex commented 9 years ago

Fix is working and tested thanks Anthony ;)

andrewda commented 9 years ago

33

TheAnthonyNL commented 9 years ago

@andrewda ok thanks for the pull request, if i wanted to do that i had to start all over again ( i changed way too much in several files i can't keep track of it anymore).

andrewda commented 9 years ago

@TheAnthonyNL hahaha, no problem.