Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 function handleRequest(request, response)
2 {
3 var self = Components.classes["@mozilla.org/file/local;1"]
4 .createInstance(Components.interfaces.nsILocalFile);
5 self.initWithPath(getState("__LOCATION__"));
6 var dest = self.parent;
7 dest.append("\u263a.ico");
8 if (dest.exists())
9 dest.remove(false);
10 response.setStatusLine(request.httpVersion, 200, "OK");
11 response.setHeader("Content-Type", "text/html");
12 }