This pull request includes changes to the background.js, content_script.js, and popup.js files. The changes involve adding a tooltip setting to the popup settings that should be stored in the storage along with other settings. The tooltip setting allows users to enable or disable tooltips.
Summary
Added tooltipEnabled property to the chrome.storage.local.get function in the background.js file.
Added a conditional statement in the chrome.runtime.onMessage.addListener function in the background.js file to handle the "toggleTooltipSetting" action.
Added a new function traverseAndAddEmojis in the content_script.js file that accepts a tooltipEnabled parameter.
Modified the traverseAndAddEmojis function in the content_script.js file to include a conditional statement based on the tooltipEnabled parameter.
Added tooltipEnabled property to the chrome.storage.local.get function in the content_script.js file.
Added a callback function to the chrome.runtime.sendMessage function in the popup.js file to create the tooltip setting checkbox.
Added a new function createTooltipSettingCheckbox in the popup.js file to create the tooltip setting checkbox.
Added an event listener to the tooltip setting checkbox in the createTooltipSettingCheckbox function in the popup.js file to toggle the tooltip setting and send a message to the background script.
Fixes #8.
π Latest improvements to Sweep:
We just released a dashboard to track Sweep's progress on your issue in real-time, showing every stage of the process β from search to planning and coding.
Sweep uses OpenAI's latest Assistant API to plan code changes and modify code! This is 3x faster and significantly more reliable as it allows Sweep to edit code and validate the changes in tight iterations, the same way as a human would.
PR Feedback (click)
Description
This pull request includes changes to the
background.js
,content_script.js
, andpopup.js
files. The changes involve adding a tooltip setting to the popup settings that should be stored in the storage along with other settings. The tooltip setting allows users to enable or disable tooltips.Summary
tooltipEnabled
property to thechrome.storage.local.get
function in thebackground.js
file.chrome.runtime.onMessage.addListener
function in thebackground.js
file to handle the "toggleTooltipSetting" action.traverseAndAddEmojis
in thecontent_script.js
file that accepts atooltipEnabled
parameter.traverseAndAddEmojis
function in thecontent_script.js
file to include a conditional statement based on thetooltipEnabled
parameter.tooltipEnabled
property to thechrome.storage.local.get
function in thecontent_script.js
file.chrome.runtime.sendMessage
function in thepopup.js
file to create the tooltip setting checkbox.createTooltipSettingCheckbox
in thepopup.js
file to create the tooltip setting checkbox.createTooltipSettingCheckbox
function in thepopup.js
file to toggle the tooltip setting and send a message to the background script.Fixes #8.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: