Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4c9fc07

Browse filesBrowse files
committed
Index.html Only insert snippet if found
1 parent deea685 commit 4c9fc07
Copy full SHA for 4c9fc07

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎doc/_templates/index.html

Copy file name to clipboardExpand all lines: doc/_templates/index.html
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
// Synchronous request, wait till we have it all
3030
req.open('GET', url, false);
3131
req.send(null);
32-
element.innerHTML = req.responseText;
32+
if (req.status == 200) {
33+
element.innerHTML = req.responseText;
34+
} else {
35+
element.innerHTML = "<mark>Could not find Snippet to insert at " + url + "</mark>"
36+
}
3337
}
3438
}
3539
</script>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.