Skip to content
Snippets Groups Projects
Commit 6a2b7606 authored by Stefan Cruz's avatar Stefan Cruz
Browse files

chore: fix setting variables when debugging.

parent e969da01
No related branches found
No related tags found
No related merge requests found
......@@ -84,26 +84,6 @@ import {
} from './Mappers';
if (IS_TESTING) {
if (!_settings) {
_settings = {}
}
_settings.hideSensitiveContent = false;
_settings.avatarSizeOptionIndex = 8;
_settings.thumbnailResolutionOptionIndex = 7;
_settings.preferredCountryOptionIndex = 0;
_settings.videosPerPageOptionIndex = 4;
_settings.playlistsPerPageOptionIndex = 0;
if (!config) {
config = {
id: "9c87e8db-e75d-48f4-afe5-2d203d4b95c5"
}
}
}
let httpClientAnonymous: IHttp = http.newClient(false);
......@@ -122,6 +102,18 @@ source.enable = function (conf, settings, saveStateStr) {
config = conf ?? {};
_settings = settings ?? {};
if (IS_TESTING) {
_settings.hideSensitiveContent = false;
_settings.avatarSizeOptionIndex = 8;
_settings.thumbnailResolutionOptionIndex = 7;
_settings.preferredCountryOptionIndex = 0;
_settings.videosPerPageOptionIndex = 4;
_settings.playlistsPerPageOptionIndex = 0;
config.id = "9c87e8db-e75d-48f4-afe5-2d203d4b95c5";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment