Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Update privacy.js - Wider Range #803

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/js/privacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ function onChangeValueHandler(uelem, setting, min, max) {
/******************************************************************************/

function prepareToDie() {
onChangeValueHandler(uDom('#delete-unused-session-cookies-after'), 'deleteUnusedSessionCookiesAfter', 15, 1440);
onChangeValueHandler(uDom('#clear-browser-cache-after'), 'clearBrowserCacheAfter', 15, 1440);
onChangeValueHandler(uDom('#spoof-user-agent-every'), 'spoofUserAgentEvery', 2, 999);
onChangeValueHandler(uDom('#delete-unused-session-cookies-after'), 'deleteUnusedSessionCookiesAfter', 1, 1440);
onChangeValueHandler(uDom('#clear-browser-cache-after'), 'clearBrowserCacheAfter', 1, 1440);
onChangeValueHandler(uDom('#spoof-user-agent-every'), 'spoofUserAgentEvery', 1, 999);
}

/******************************************************************************/
Expand All @@ -96,13 +96,13 @@ var installEventHandlers = function() {
});

uDom('#delete-unused-session-cookies-after').on('change', function(){
onChangeValueHandler(uDom(this), 'deleteUnusedSessionCookiesAfter', 15, 1440);
onChangeValueHandler(uDom(this), 'deleteUnusedSessionCookiesAfter', 1, 1440);
});
uDom('#clear-browser-cache-after').on('change', function(){
onChangeValueHandler(uDom(this), 'clearBrowserCacheAfter', 15, 1440);
onChangeValueHandler(uDom(this), 'clearBrowserCacheAfter', 1, 1440);
});
uDom('#spoof-user-agent-every').on('change', function(){
onChangeValueHandler(uDom(this), 'spoofUserAgentEvery', 2, 999);
onChangeValueHandler(uDom(this), 'spoofUserAgentEvery', 1, 999);
});
uDom('#spoof-user-agent-with').on('change', function(){
changeUserSettings('spoofUserAgentWith', uDom(this).val());
Expand Down