Skip to content

Commit b33d98b

Browse files
author
Philip Guo
committed
teeny again
1 parent 15eee3d commit b33d98b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎v3/js/opt-frontend.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function setCodeMirrorVal(dat) {
6060
$('#urlOutput').val('');
6161

6262
// also scroll to top to make the UI more usable on smaller monitors
63-
$('html').scrollTop(0);
63+
$(document).scrollTop(0);
6464
}
6565

6666

@@ -259,7 +259,7 @@ $(document).ready(function() {
259259

260260

261261
// also scroll to top to make the UI more usable on smaller monitors
262-
$('html').scrollTop(0);
262+
$(document).scrollTop(0);
263263

264264
$.bbq.pushState({ mode: 'visualize' }, 2 /* completely override other hash strings to keep URL clean */);
265265
}

0 commit comments

Comments
 (0)