Export: klare Meldung, wenn PostGrid nicht auf 4321 laeuft
Vorher hiess das nur "kennt keine Animationen". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f38cbfe12c
commit
78a6fcba78
1 file changed
+7
-1
+7
-1
@@ -126,7 +126,13 @@ try {
|
|||||||
{ width: BREITE, height: HOEHE, deviceScaleFactor: 1, mobile: false });
|
{ width: BREITE, height: HOEHE, deviceScaleFactor: 1, mobile: false });
|
||||||
|
|
||||||
const laden = async adresse => {
|
const laden = async adresse => {
|
||||||
await cdp.ruf("Page.navigate", { url: "http://127.0.0.1:4321/" + adresse });
|
const antwort = await cdp.ruf("Page.navigate", { url: "http://127.0.0.1:4321/" + adresse });
|
||||||
|
/* Laeuft PostGrid nicht auf 4321, laedt die Seite gar nicht. Ohne diese
|
||||||
|
Pruefung hiess das spaeter nur "kennt keine Animationen". */
|
||||||
|
if (antwort && antwort.errorText) {
|
||||||
|
throw new Error("PostGrid ist unter http://127.0.0.1:4321/ nicht erreichbar (" +
|
||||||
|
antwort.errorText + "). PostGrid mit ./serve.sh starten und den Post dort oeffnen.");
|
||||||
|
}
|
||||||
await new Promise(r => setTimeout(r, 4000));
|
await new Promise(r => setTimeout(r, 4000));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user