Skip to content

Commit 4ab8469

Browse files
save file
1 parent 7adeb34 commit 4ab8469

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code-dev/display.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ <h1 class=title>
199199

200200
if(!rel){
201201
var url = new URL(window.location.toString());
202+
203+
if(url.searchParams.toString()==''){
204+
console.log('no search params');
205+
return;
206+
}
207+
202208
date = url.searchParams.get('date');
203209
fn = url.searchParams.get('file');
204210
var i = fn.lastIndexOf('.');

0 commit comments

Comments
 (0)