Files
haikuports/www-client/mozilla_firefox/copy-to-mozilla-src-dir/browser/base/content/dynamic-userguide-v1.html
Oliver Tappe 2191f6611f Rename all port folders containing '-' to use '_' instead.
* haikuporter relies on the recipe file sharing the name with the port folder
2013-04-21 18:58:18 +02:00

33 lines
1.4 KiB
HTML

<html>
<head>
<title>Opening the welcome page...</title>
<script type="text/javascript">
function fileExists(filename) {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
} catch (e) {
alert("Permission to read file was denied.");
}
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(
Components.interfaces.nsILocalFile);
file.initWithPath(filename);
return file.exists();
}
window.onload = function() {
var url = "http://svn.berlios.de/svnroot/repos/haiku/haiku/trunk/docs/userguide/en/contents.html";
var localWelcome = "/boot/system/documentation/userguide/en/contents.html";
if (fileExists(localWelcome))
url = "file://" + localWelcome;
window.open(url, "_self");
}
</script>
</head>
<body>
Opening the welcome page...
</body>
</html>