Skip to content

Commit

Permalink
Fix WhichBrowser API
Browse files Browse the repository at this point in the history
  • Loading branch information
niutech authored Mar 15, 2024
1 parent f578637 commit 7c8d5c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compare/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
e|=(e&16&&({}.toString).toString().indexOf("\n")===-1)?32:0;p.push('e='+e);f|='sandbox' in d.createElement('iframe')?1:0;f|='WebSocket' in w?2:0;
f|=w.Worker?4:0;f|=w.applicationCache?8:0;f|=w.history && history.pushState?16:0;f|=d.documentElement.webkitRequestFullScreen?32:0;f|='FileReader' in w?64:0;
p.push('f='+f);p.push('r='+Math.random().toString(36).substring(7));p.push('w='+screen.width);p.push('h='+screen.height);var s=d.createElement('script');
s.src='https://corsproxy.org/?http://api.whichbrowser.net/rel/detect.js?' + p.join('&');d.getElementsByTagName('head')[0].appendChild(s);})();
s.src='https://api.whichbrowser.net/rel/detect.js?' + p.join('&');d.getElementsByTagName('head')[0].appendChild(s);})();
</script>
<meta name="application-name" content="HTML5test">
<link rel="apple-touch-icon" sizes="57x57" href="/images/icons/apple-touch-icon-57x57.png">
Expand Down
4 changes: 2 additions & 2 deletions scripts/base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var API_BASE = 'https://corsproxy.org/?http://html5test.eu5.net/api'
var API_BASE = 'https://corsproxy.io/?http://html5test.eu5.net/api'

/* Polyfills */

Expand Down Expand Up @@ -76,7 +76,7 @@ function loadWhichBrowser(cb) {
}

var script = document.createElement('script');
script.src = 'https://corsproxy.org/?http://api.whichbrowser.net/rel/detect.js?' + p.join('&');
script.src = 'https://api.whichbrowser.net/rel/detect.js?' + p.join('&');
document.getElementsByTagName('head')[0].appendChild(script);

wait();
Expand Down

0 comments on commit 7c8d5c4

Please sign in to comment.