Skip to content

Commit

Permalink
Collapsed Queue: Prevent running with no options selected (AprilSylph…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon authored Aug 2, 2023
1 parent b524e46 commit 97f1cc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/collapsed_queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const processPosts = async function (postElements) {

export const main = async function () {
const { runInQueue, runInDrafts } = await getPreferences('collapsed_queue');
if (![runInQueue, runInDrafts].some(Boolean)) return;

const regexGroup = [
...runInQueue ? ['queue'] : [],
...runInDrafts ? ['draft'] : []
Expand Down

0 comments on commit 97f1cc2

Please sign in to comment.