Inspector console shows:
SessionStore: The session file is invalid: TypeError: state is null SessionStore.jsm:938:19 PushDB: update: Ignoring invalid update b383a8af-59bf-4125-9214-6f6286df046a null 5 PushDB.jsm:420 lazy.AsyncShutdown.profileBeforeChange is undefined Database.jsm:510 InvalidStateError: JSWindowActorChild.sendAsyncMessage: JSWindowActorChild cannot send at the moment ConduitsChild.jsm:67 [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowUtils.addSheet]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/ExtensionCommon.jsm :: runSafeSyncWithoutClone :: line 68" data: no] ExtensionCommon.jsm:68:12 lazy.AsyncShutdown.profileBeforeChange is undefined Database.jsm:510 InvalidStateError: JSWindowActorChild.sendAsyncMessage: JSWindowActorChild cannot send at the moment ContentMetaChild.jsm:183 NS_ERROR_NOT_AVAILABLE InvalidStateError: JSWindowActorChild.sendAsyncMessage: JSWindowActorChild cannot send at the moment ConduitsChild.jsm:67 InvalidStateError: JSWindowActorChild.sendAsyncMessage: JSWindowActorChild cannot send at the moment ConduitsChild.jsm:67 InvalidStateError: JSWindowActorChild.sendAsyncMessage: JSWindowActorChild cannot send at the moment ConduitsChild.jsm:67 InvalidStateError: JSWindowActorChild.sendAsyncMessage: JSWindowActorChild cannot send at the moment 2 FaviconLoader.jsm:578:18 this.window.gBrowserInit is undefined ext-browser.js:1147
I don't know how to get along with this.
<head>
<script type="text/javascript">
function GetHTMLOfDate(DateP) {
var ReturnValue = "";
if (DateP.getFullYear() > 0) {
ReturnValue += "Jahre: ";
ReturnValue += String(DateP.getFullYear());
}
if (ReturnValue != "") {
ReturnValue += "<br" > ;
}
if (DateP.getMonth() > 0) {
ReturnValue += "Monate: ";
Return += String(DateP.getMonth());
}
if (ReturnValue != "") {
ReturnValue += "<br" > ;
}
if (DateP.getDate() > 0) {
ReturnValue += "Tage: ";
Return += String(DateP.getDate());
}
return ReturnValue;
}
function LoadFunction() {
var ApocalypseOneDate = new Date(2022, 12, 31);
var ApocalypseTwoDate = new Date(2023, 12, 31);
var Now = new Date();
var TimeToPhaseOne = new Date(ApocalypseOneDate - Now);
document.getElementById("timesundestroyed").innerHTML = GetHTMLOfDate(TimeToPhaseOne);
var TimeToPhaseTwo = new Date(ApocalypseTwoDate - Now);
document.getElementById("timeatomicbomb").innerHTML = GetHTMLOfDate(TimeToPhaseTwo);
}
</script>
</head>
<body onload="LoadFunction();">
<h1>Zeit bis zur Apokalypse</h1>
<p id="timesundestroyed"></p>
<h2>Ausschaltung der Sonne</h2>
<p id="timeatomicbomb"></p>
</body>