Skip to content

Commit

Permalink
Merge pull request #5 from Mazedotexe/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
crllect authored May 10, 2024
2 parents 5a6b3b9 + c9c03f8 commit 676eee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/waybar.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ document.getElementById("searchButton").onclick = function (event) {
);
let searchUrl = preferredSearchEngine || "https://www.bing.com/search?q=";

if (!url.includes(".")) {
if (!url.includes(".") || url.split(".").slice(1).toString().includes(" ")) {
url = searchUrl + encodeURIComponent(url);
} else {
if (!url.startsWith("http://") && !url.startsWith("https://")) {
Expand Down

0 comments on commit 676eee5

Please sign in to comment.