Issue Bug Closed

#15432Javascript Warning

Stefan Geith 01/17/06, 12:05 updated 08/12/06, 14:18

Description

Javascript warnings on every page:
Warnung: assignment to undeclared variable browserName
Warnung: assignment to undeclared variable browserVer
Warnung: assignment to undeclared variable version

This comes from class.tslib_pagegen.php, lines 717+

Should be easy to fix – these lines:
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
…
should be changed to
var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
var version = “”;
…

(issue imported from #M2293)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.