Skip to content

Commit 24f2daf

Browse files
committed
Add handling for reverting the base url
1 parent acbced7 commit 24f2daf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

extension/options/js/options.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ function setInitialState() {
146146
$(this).blur();
147147
}, 250);
148148
});
149+
150+
$("#default_url_revert").click(function() {
151+
$("#default_url").val("https://www.stackoverflow.com/search?q=");
152+
chrome.storage.sync.set({
153+
baseUrl: "https://www.stackoverflow.com/search?q="
154+
}, function() {
155+
showSavedAlert();
156+
});
157+
});
158+
149159
});
150160
}
151161

0 commit comments

Comments
 (0)