Skip to content

Commit 851dcf2

Browse files
authored
Bump Prism version and fix search input
2 parents 1d9b980 + 2dc14a6 commit 851dcf2

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

full.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251

252252
<script src="lib/prism.js" data-manual></script>
253253
<script>
254-
Prism.plugins.autoloader.languages_path = 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.26.0/components/';
254+
Prism.plugins.autoloader.languages_path = 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/components/';
255255
</script>
256256

257257

spotlightsearch.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ searchInput.addEventListener('input', () => {
7171

7272
})
7373

74+
// disable enter key in search input
75+
searchInput.addEventListener('keydown', (e) => {
76+
77+
if (e.key === 'Enter') {
78+
79+
e.preventDefault();
80+
searchInput.blur();
81+
82+
}
83+
84+
})
85+
7486
// clear search input when clicked on button
7587
searchClear.addEventListener('click', () => {
7688

worker/client-channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
// update worker name when updating worker
7-
const WORKER_NAME = 'codeit-worker-v551';
7+
const WORKER_NAME = 'codeit-worker-v552';
88

99

1010
// internal paths

0 commit comments

Comments
 (0)