Permalink
Browse files

remove unncessary warn files

  • Loading branch information...
Nigel Babu
Nigel Babu committed Mar 23, 2012
1 parent 44abd69 commit 218d265691ed4769e4d35de4e19c8284240d62a9
Showing with 3 additions and 50 deletions.
  1. +0 −21 data/warnlinux.html
  2. +0 −21 data/warnwin.html
  3. +3 −8 lib/main.js
View
@@ -1,21 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
-
-<head>
- <style type="text/css" media="all">
- body {
- margin: 10px;
- font-family: sans-serif;
- padding: 10px;
- text-align: center;
- }
- </style>
-</head>
-
-<body>
-Press Control-Q again to quit.
-</body>
-
-</html>
View
@@ -1,21 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
-
-<head>
- <style type="text/css" media="all">
- body {
- margin: 10px;
- font-family: sans-serif;
- padding: 10px;
- text-align: center;
- }
- </style>
-</head>
-
-<body>
-Press Control-Q again to quit.
-</body>
-
-</html>
View
@@ -8,15 +8,10 @@ var osString = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime).OS
var osWarnFile;
// Load the right warning
-switch (osString) {
- case "Linux":
- osWarnFile = "warnlinux.html";
- break;
- case "Darwin":
+if (osString == "Darwin") {
osWarnFile = "warnmac.html";
- break;
- default:
- osWarnFile = "warnwin.html";
+ } else {
+ osWarnFile = "warn.html";
}
// Create the panel to show the warning

0 comments on commit 218d265

Please sign in to comment.