diff --git a/api-samples/browsingData/popup.js b/api-samples/browsingData/popup.js index 61f7da2827..42b9047121 100644 --- a/api-samples/browsingData/popup.js +++ b/api-samples/browsingData/popup.js @@ -28,7 +28,8 @@ function parseMilliseconds(timeframe) { return null; } -function buttonClicked() { +function buttonClicked(event) { + event.preventDefault(); const option = document.getElementById('timeframe'); let selectedTimeframe = option.value; let removal_start = parseMilliseconds(selectedTimeframe);