mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
interactive-examples.js: Fix access on null value (#1462)
This commit is contained in:
@@ -74,7 +74,9 @@ async function main() {
|
||||
if (exampleTitleContainer !== null) {
|
||||
exampleTitleParagraphElement = exampleTitleContainer.querySelector("p")
|
||||
const exampleScreenContainer = exampleTitleContainer.nextElementSibling;
|
||||
exampleScreenPreElement = exampleScreenContainer.querySelector("pre");
|
||||
if (exampleScreenContainer !== null) {
|
||||
exampleScreenPreElement = exampleScreenContainer.querySelector("pre");
|
||||
}
|
||||
}
|
||||
|
||||
const code = phpcode.querySelector("code");
|
||||
|
||||
Reference in New Issue
Block a user