Skip to content

Commit c38ce52

Browse files
committed
fix: view debug, css selector error
1 parent db1d186 commit c38ce52

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Classes/Handler/HSDRequestHandler.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ + (HSDGWebServerResponse *)handleRequest:(HSDGWebServerRequest *)request {
211211
response = [[HSDGWebServerDataResponse alloc] initWithHTML:htmlStr];
212212
} else {
213213
NSString *documentPath = [documentRoot stringByAppendingPathComponent:path];
214-
response = [[HSDGWebServerFileResponse alloc] initWithFile:documentPath];
214+
if ([[NSFileManager defaultManager] fileExistsAtPath:documentPath]) {
215+
response = [[HSDGWebServerFileResponse alloc] initWithFile:documentPath];
216+
}
215217
}
216218

217219
if (!response) {

Resources/HttpServerDebug.bundle/web/pages/view_debug/view_debug.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ div.view-hierarchy-area {
9494
padding-left: 4px;
9595
display: inline-block;
9696
}
97-
#view-property-list ul {
97+
.view-property-list ul {
9898
padding: 0;
9999
}
100-
#view-property-list img {
100+
.view-property-list img {
101101
width: 75%;
102102
margin-left: auto;
103103
margin-right: auto;

0 commit comments

Comments
 (0)