Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiber committed Aug 8, 2024
1 parent cb796dd commit 43fadc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/scripts/content/nebula/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import iconWatchLater from '../../../icons/watchlater.svg';
import { enqueueChannelVideos } from '../../helpers/api';
import { creatorLink, isPlusContent, isWatchProgress, queueBottonLocation, uploadDurationLocation, uploadTimeLocation, watchLaterLocation, watchProgressLocation } from '../../helpers/locations';
import { BrowserMessage, calcOuterBounds, clone, creatorRegex, debounce, devClone, devExport, explicitHistoryPageRegex, getBase, getBrowserInstance, getFromStorage, injectScript, isMobile, isVideoListPage, isVideoPage, parseDuration, setToStorage, toTimeString, uploadIsBefore, uploadIsLongerThan, videoselector, videoUrlMatch, ytvideo } from '../../helpers/sharedExt';
import { BrowserMessage, calcOuterBounds, clone, creatorRegex, debounce, devClone, devExport, explicitHistoryPageRegex, getBase, getBrowserInstance, getFromStorage, injectScript, isMobile, isVideoListPage, isVideoPage, parseDuration, setToStorage, toTimeString, uploadIsBefore, uploadIsLongerThan, videoUrlMatch, videoselector, ytvideo } from '../../helpers/sharedExt';
import { loadPrefix, xhrPrefix } from '../../page/dispatcher';
import { Queue } from '../queue';
import { addCreatorSettings, CreatorSettings, init as initCreator } from './creator-settings';
import { CreatorSettings, addCreatorSettings, init as initCreator } from './creator-settings';
import { handle } from './message';

const msg = getBrowserInstance().i18n.getMessage;
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/helpers/shared/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const knownPages = ['library', 'videos', 'podcasts', 'classes', 'search', 'account', 'login', 'join', 'terms', 'privacy', 'beta', 'faq', 'suggest', 'jobs', 'settings', 'explore'] as const;
export const knownHomePages = ['featured', 'originals', 'culture', 'science', 'history', 'podcasts', 'classes'] as const;
export const knownPages = [ 'library', 'videos', 'podcasts', 'classes', 'search', 'account', 'login', 'join', 'terms', 'privacy', 'beta', 'faq', 'suggest', 'jobs', 'settings', 'explore' ] as const;
export const knownHomePages = [ 'featured', 'originals', 'culture', 'science', 'history', 'podcasts', 'classes' ] as const;

export const knownRegex = new RegExp(`^\\/(${knownPages.join('|')})(?:\\/(.+))?\\/?$`);
export const knownHomeRegex = new RegExp(`^\\/(${knownHomePages.join('|')})(?:\\/(.+))?\\/?$`);
Expand Down

0 comments on commit 43fadc3

Please sign in to comment.