зеркало из https://github.com/mozilla/pjs.git
Bug 327806 - Set unknownUID to the browser chrome URL if we're using that kind of detection.
ChatZilla only. r=silver p=rdmsoft@bugs.rdmsoft.com (Robert Marshall)
This commit is contained in:
Родитель
e1bd7c777d
Коммит
221c1813fa
|
@ -436,11 +436,18 @@ function initApplicationCompatibility()
|
|||
{
|
||||
var url = getBrowserURL();
|
||||
if (url == "chrome://navigator/content/navigator.xul")
|
||||
{
|
||||
client.host = "Mozilla";
|
||||
}
|
||||
else if (url == "chrome://browser/content/browser.xul")
|
||||
{
|
||||
client.host = "Firefox";
|
||||
}
|
||||
else
|
||||
{
|
||||
client.host = ""; // We don't know this host. Show an error later.
|
||||
client.unknownUID = url;
|
||||
}
|
||||
}
|
||||
|
||||
client.platform = "Unknown";
|
||||
|
|
Загрузка…
Ссылка в новой задаче