Skip to content

Commit

Permalink
fix typo (remove #) | correctly handle native europresse query
Browse files Browse the repository at this point in the history
  • Loading branch information
Write committed Sep 2, 2024
1 parent e16dc11 commit ebfce3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ophirofox/content_scripts/europresse_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function onLoad() {
.split(/[^\p{L}\p{M}\p{Nd}]+/u)
.filter(w => !stopwords.has(w))
.join(' ');
const keyword_field_id = path.startsWith("/Search/Result") ? "#NativeQuery" : "#Keywords";
const keyword_field_id = path.startsWith("/Search/Result") ? "NativeQuery" : "Keywords";
const keyword_field = document.getElementById(keyword_field_id);
keyword_field.value = 'TIT_HEAD=' + keywords;

Expand Down

0 comments on commit ebfce3c

Please sign in to comment.