"use strict";

// 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>" +
        "<meta name=viewport content='initial-scale=1, maximum-scale=1, user-scalable=no'>" +
        "<title>Chromium Code Review</title>" +
        "<script src='" + resolveUrl("bower_components/platform/platform.js") + "'></script>" +
        "<link rel='import' href='" + resolveUrl("bower_components/polymer/polymer.html") + "'>" +
        "<link rel='import' href='" + resolveUrl("ui/components/cr-app.html") + "'>" +
        "<link rel='stylesheet' href='" + resolveUrl("ui/style.css") + "'>" +
        "<cr-app></cr-app>"
    );
    document.close();
    document.documentElement.style.display = '';
};

@@ -251,16 +251,39 @@
 sh.%0A
-on
+window.addEventListener(%22
 load
- =
+%22,
  fun
@@ -949,10 +949,11 @@
  = '';%0A%7D
+)
 ;%0A

Fix main.js now that its in strict mode.