diff --git a/js/background.js b/js/background.js index c690013fc..6e87a7062 100644 --- a/js/background.js +++ b/js/background.js @@ -323,16 +323,7 @@ const ttl = Number.isNaN(intValue) ? 24 : intValue; storage.put('message-ttl', ttl); }, - - - // getZoomFactor: () => storage.get('zoom-factor-setting', 48), - // setZoomFactor: value => { - // // Make sure the ttl is between a given range and is valid - // const intValue = parseInt(value, 10); - // const factor = Number.isNaN(intValue) ? 24 : intValue; - // storage.put('zoom-factor-setting', factor); - // }, - + getReadReceiptSetting: () => storage.get('read-receipt-setting'), setReadReceiptSetting: value => storage.put('read-receipt-setting', value), diff --git a/main.js b/main.js index 86866b1bd..9f774569a 100644 --- a/main.js +++ b/main.js @@ -577,7 +577,6 @@ let settingsWindow; async function showSettingsWindow() { if (settingsWindow) { settingsWindow.show(); - console.log(window.getSettingValue('zoom-factor-setting'), 'from settingsWindow') return; } if (!mainWindow) { diff --git a/preload.js b/preload.js index 3637bf4ea..144a02b2a 100644 --- a/preload.js +++ b/preload.js @@ -2,6 +2,7 @@ /* global window: false */ const path = require('path'); const electron = require('electron'); + const {webFrame} = electron; const semver = require('semver'); @@ -251,11 +252,6 @@ window.getMessageTTL = () => window.storage.get('message-ttl', 24); installGetter('message-ttl', 'getMessageTTL'); installSetter('message-ttl', 'setMessageTTL'); -// Get the zoom Factor setting -// window.getZoomFactor = () => window.storage.get('zoom-factor-setting',50) -// installGetter('zoom-factor-setting', 'getZoomFactor'); -// installSetter('zoom-factor-setting', 'setZoomFactor'); - installGetter('read-receipt-setting', 'getReadReceiptSetting'); installSetter('read-receipt-setting', 'setReadReceiptSetting'); diff --git a/ts/components/session/SessionToggle.tsx b/ts/components/session/SessionToggle.tsx index 54083e151..038129681 100644 --- a/ts/components/session/SessionToggle.tsx +++ b/ts/components/session/SessionToggle.tsx @@ -34,7 +34,6 @@ export class SessionToggle extends React.PureComponent { this.state = { active: active, }; - console.log('it is the constructor runs the first') } @@ -42,9 +41,6 @@ export class SessionToggle extends React.PureComponent { public render() { - - console.log(this.props, 'from Session Toggle') - return (
{ } }; - - //what does the following piece of code do? // - - //what is the window.comfirmationDialog doing in here? - if ( this.props.confirmationDialogParams && this.props.confirmationDialogParams.shouldShowConfirm() diff --git a/ts/components/session/settings/SessionSettingListItem.tsx b/ts/components/session/settings/SessionSettingListItem.tsx index e7bc66e4a..56ebe9c94 100644 --- a/ts/components/session/settings/SessionSettingListItem.tsx +++ b/ts/components/session/settings/SessionSettingListItem.tsx @@ -145,8 +145,6 @@ export class SessionSettingListItem extends React.Component { sliderValue: value, }); - console.log(this.props.title, 'from here') - if(this.props.title === 'Zoom Factor' && this.state.sliderValue!==null) { window.setZoomFactor(this.state.sliderValue/100) } diff --git a/ts/components/session/settings/SessionSettings.tsx b/ts/components/session/settings/SessionSettings.tsx index 8d493ef5a..2ac98361a 100644 --- a/ts/components/session/settings/SessionSettings.tsx +++ b/ts/components/session/settings/SessionSettings.tsx @@ -137,10 +137,6 @@ export class SettingsView extends React.Component { this.updateSetting(setting); }); - //define a bunch of function that will be used in the setting list. - //since setting elem itself is an array elem, this either becomes, onlick function - // or a function returned by others. - return (
{shouldRenderSettings && @@ -238,11 +234,8 @@ export class SettingsView extends React.Component { this.state.shouldLockSettings && this.state.hasPassword; return ( - - //this is the section where the actually setting group of components gets render!
- {/* header is always rendered */} {
- {/* some show lock logic is put in here to make sure that every time if you want to change the appearance */} {shouldRenderPasswordLock ? ( this.renderPasswordLock() //