diff options
author | Sergej Pozdnyakov <afinogen89@gmail.com> | 2018-03-01 20:58:37 +0300 |
---|---|---|
committer | Sergej Pozdnyakov <afinogen89@gmail.com> | 2018-03-01 20:58:37 +0300 |
commit | 87e092cbcb596d66a3bfed9d5f4dd1d00db93c8e (patch) | |
tree | 99723e2e2c5478346d054744222ba54f50fa181f /main.js | |
parent | 725e4804008a06c208f861bccde227a16bec4672 (diff) |
new appearance of the interface, need testing
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -59,19 +59,21 @@ $(document).ready(function () { } }); + win.setMinimumSize(1024, 800); + win.on('close', function () { //Save window size and position - var height = win.height; - var width = win.width; - - if (height < 400) { - height = 400 - } - if (width < 512) { - width = 512 - } - - chrome.storage.local.set({'windowSize': {height: height, width: width, x: win.x, y: win.y}}, function () { + // var height = win.height; + // var width = win.width; + // + // if (height < 400) { + // height = 400 + // } + // if (width < 512) { + // width = 512 + // } + + chrome.storage.local.set({'windowSize': {height: win.height, width: win.width, x: win.x, y: win.y}}, function () { // Notify that we saved. console.log('Settings saved'); }); |