Skip to content

Commit

Permalink
remove commented out console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rthaut committed Jan 2, 2025
1 parent 311144b commit 8079378
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
15 changes: 0 additions & 15 deletions app/scripts/helpers/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@ const Options = (() => {
* @param {boolean} [reset=false] indicates if local storage should be reset
*/
InitLocalStorageDefaults: async function (reset = false) {
// console.log("Options.InitDefaults()");

const defaults = this.ConvertForStorage(
Object.assign({}, OPTION_DEFAULTS),
);

if (reset) {
// console.log(
// "Options.InitDefaults() :: Setting all options to default values",
// defaults
// );
await browser.storage.local.clear();
await browser.storage.local.set(defaults);
} else {
Expand All @@ -38,11 +32,6 @@ const Options = (() => {

Object.keys(defaults).forEach((option) => {
if (options[option] === undefined || options[option] === null) {
// console.log(
// `Options.InitDefaults() :: Setting "${option}" to default value`,
// defaults[option]
// );

const opt = {};
opt[option] = defaults[option];
promises.push(browser.storage.local.set(opt));
Expand All @@ -51,10 +40,6 @@ const Options = (() => {

Object.keys(options).forEach((option) => {
if (defaults[option] === undefined || defaults[option] === null) {
// console.log(
// `Options.InitDefaults() :: Removing unknown/invalid option "${option}"`
// );

promises.push(browser.storage.local.remove(option));
}
});
Expand Down
15 changes: 0 additions & 15 deletions app/scripts/helpers/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,13 @@ export const IsVideoURL = (url, external = true) =>
* @returns {string} the video ID
*/
export const GetVideoIDFromURL = (url, external = true) => {
// console.group("GetVideoIDFromURL()");

let id = null;

const result = (external ? VideoLinkOrEmbedRegEx : VideoIDRegEx).exec(url);
// console.log("RegExp Result", result);

if (result && result[1]) {
id = result[1];
}

// console.log("Return", id);
// console.groupEnd();
return id;
};

Expand All @@ -43,12 +37,7 @@ export const GetVideoIDFromURL = (url, external = true) => {
* @returns {string} the playlist ID
*/
export const GetPlaylistIDFromURL = (url) => {
// console.group("GetPlaylistIDFromURL()");

const id = GetParamFromURL("list", url);

// console.log("Return", id);
// console.groupEnd();
return id;
};

Expand All @@ -57,8 +46,6 @@ export const GetPlaylistIDFromURL = (url) => {
* @return {string[]} the video IDs
*/
export const GetPlaylistVideoIDsFromDOM = () => {
// console.group("GetPlaylistVideoIDsFromDOM()");

const IDs = Array.from(
new Set(
Array.from(
Expand All @@ -74,7 +61,5 @@ export const GetPlaylistVideoIDsFromDOM = () => {
),
);

// console.log("Return", IDs);
// console.groupEnd();
return IDs;
};

0 comments on commit 8079378

Please sign in to comment.