Skip to content

Commit 0e00e20

Browse files
committed
Make serving .js files from database more retarded
1 parent 19416a8 commit 0e00e20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/web/file.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ impl Handler for DatabaseFileHandler {
7676
}
7777
// rustdoc javascripts have rustdoc prefix in database
7878
// FIXME: this is kinda lame I have to save all javascripts with rustdoc prefix
79-
if path.ends_with(".js") {
79+
// FIXME: this code became more retarded than before
80+
if path.ends_with(".js") && !path.starts_with("main-") &&
81+
!path.starts_with("jquery-") && !path.starts_with("playpen-") {
8082
format!("rustdoc/{}", path)
8183
} else {
8284
path

0 commit comments

Comments
 (0)