mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
Issue #1053 - Drop support Android and remove Fennec - Part 1a: Remove mobile/android
This commit is contained in:
parent
85045bf6be
commit
c9b411d6cd
3891 changed files with 0 additions and 428084 deletions
|
|
@ -1,28 +0,0 @@
|
|||
/**
|
||||
* Used with testThumbnails.
|
||||
* On the first visit, the page is green.
|
||||
* On subsequent visits, the page is red.
|
||||
*/
|
||||
|
||||
function handleRequest(request, response) {
|
||||
let type = request.queryString.match(/^type=(.*)$/)[1];
|
||||
let state = "thumbnails." + type;
|
||||
let color = "#0f0";
|
||||
let status = 200;
|
||||
|
||||
if (getState(state)) {
|
||||
color = "#f00";
|
||||
if (type == "do404")
|
||||
status = 404;
|
||||
} else {
|
||||
setState(state, "1");
|
||||
}
|
||||
|
||||
response.setStatusLine(request.httpVersion, status, null);
|
||||
response.setHeader("Content-Type", "text/html", false);
|
||||
response.setHeader("Cache-Control", "no-cache", false);
|
||||
response.write('<html>');
|
||||
response.write('<head><title>' + type + '</title> <meta charset="utf-8"> </head>');
|
||||
response.write('<body style="background-color: ' + color + '"></body>');
|
||||
response.write('</html>');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue