Skip to content
Snippets Groups Projects
Commit 8de6e26c authored by Arlo Breault's avatar Arlo Breault Committed by Cecylia Bocovich
Browse files

Remove Util.mightBeTBB

Trac 31222
parent 5d26f76b
No related branches found
Tags webext-0.0.6
No related merge requests found
......@@ -114,11 +114,6 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
return;
}
if (Util.mightBeTBB()) {
ui.missingFeature("Will not run within Tor Browser.");
return;
}
config = new Config;
if ('off' !== query.get('ratelimit')) {
config.rateLimitBytes = Params.getByteCount(query, 'ratelimit', config.rateLimitBytes);
......
/* exported Params, DummyRateLimit */
/* exported Util, Params, DummyRateLimit */
/*
A JavaScript WebRTC snowflake proxy
......@@ -8,12 +8,6 @@ Contains helpers for parsing query strings and other utilities.
class Util {
static mightBeTBB() {
return Util.TBB_UAS.indexOf(window.navigator.userAgent) > -1 && (
window.navigator.mimeTypes && window.navigator.mimeTypes.length === 0
);
}
static genSnowflakeID() {
return Math.random().toString(36).substring(2);
}
......@@ -28,16 +22,6 @@ class Util {
}
// It would not be effective for Tor Browser users to run the proxy.
// Do we seem to be running in Tor Browser? Check the user-agent string and for
// no listing of supported MIME types.
Util.TBB_UAS = [
'Mozilla/5.0 (Windows NT 6.1; rv:10.0) Gecko/20100101 Firefox/10.0',
'Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0',
'Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0',
'Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0'
];
class Parse {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment