Skip to content

Add unsteal feature - #13

Open
Mike-FreeAI wants to merge 1 commit into
anatolyzenkov:mainfrom
Mike-FreeAI:add-unsteal
Open

Add unsteal feature#13
Mike-FreeAI wants to merge 1 commit into
anatolyzenkov:mainfrom
Mike-FreeAI:add-unsteal

Conversation

@Mike-FreeAI

Copy link
Copy Markdown

Add unsteal feature to the button stealer.

  • offscreen/offscreen.js
    • Add unsteal function to unpublish and delete an entry from Contentful.
    • Add a new case in handleMessages to handle the unsteal-button message.
  • popup/popup.js
    • Add unstealButton function to send a message to the background script to unsteal a button.
    • Add an event listener to the "Unsteal" button to call unstealButton.
  • scripts/service-worker.js
    • Add a new case in handleMessages to handle the unsteal-button message and call unstealOffscreen.
    • Add unstealOffscreen function to send a message to the offscreen document to unsteal a button.
  • popup/popup.html
    • Add a new button with id unsteal to the settings form.

Add unsteal feature to the button stealer.

* **offscreen/offscreen.js**
  - Add `unsteal` function to unpublish and delete an entry from Contentful.
  - Add a new case in `handleMessages` to handle the `unsteal-button` message.
* **popup/popup.js**
  - Add `unstealButton` function to send a message to the background script to unsteal a button.
  - Add an event listener to the "Unsteal" button to call `unstealButton`.
* **scripts/service-worker.js**
  - Add a new case in `handleMessages` to handle the `unsteal-button` message and call `unstealOffscreen`.
  - Add `unstealOffscreen` function to send a message to the offscreen document to unsteal a button.
* **popup/popup.html**
  - Add a new button with id `unsteal` to the settings form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant