You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement new WebSocket API actions in `background.js` to control the poll feature. This allows external applications or tools to manage polls programmatically.
Added actions include:
- `resetpoll`: Resets the current poll, clearing votes.
- `closepoll`: Closes the current poll, preventing new votes.
- `loadpoll`: Loads a saved poll preset by its ID.
- `setpollsettings`: Updates various settings of the current poll.
- `getpollpresets`: Retrieves a list of saved poll presets.
- `createpoll`: Creates a new poll with specified initial settings.
Updated `api.md` to document the new poll API section, explaining each action and providing usage examples.
Added corresponding UI elements and JavaScript logic in `sampleapi.html` to demonstrate how to call these new poll API actions, including loading presets and creating custom polls.
Bumped extension version in `manifest.json` to reflect the added feature.
[auto-enhanced]
0 commit comments