
// Blank the document so the 404 page doesn't show up visibly.
document.documentElement.style.display = 'none';

// Can't use DOMContentLoaded, calling document.write or document.close inside it from
// inside an extension causes a crash.
onload = function() {
    document.write("<!DOCTYPE html><script src='" + resolveUrl("bower_components/platform/platform.js") + "'></script><cr-app></cr-app>");
    document.close();

    document.documentElement.style.display = '';
    document.head.appendChild(createLink("import", "bower_components/polymer/polymer.html"));
    document.head.appendChild(createLink("import", "ui/cr-app.html"));
    document.head.appendChild(createLink("stylesheet", "ui/style.css"));
};

@@ -274,16 +274,25 @@
 t.write(
+%0A        
 %22%3C!DOCTY
@@ -299,16 +299,109 @@
 PE html%3E
+%22 +%0A        %22%3Cmeta name=viewport content='width=device-width, user-scalable=no'%3E%22 +%0A        %22
 %3Cscript 
@@ -475,16 +475,29 @@
 /script%3E
+%22 +%0A        %22
 %3Ccr-app%3E
@@ -506,16 +506,21 @@
 cr-app%3E%22
+%0A    
 );%0A    d

Add a meta viewport. The app doesn't quite look right on mobile, but at least this paves the way.