Skip to content

Commit 95c9bd1

Browse files
committed
Add changing of capture timer
1 parent 6bdef6d commit 95c9bd1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
const settings = new Store({
4343
configName: 'piqturesettings',
4444
defaults: {
45-
developerKey: 123
45+
developerKey: 123,
46+
timeOutCapture: 1000
4647
}
4748
});
4849

js/start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function start(pathFile){
22
windowSecond.hide();
3-
setTimeout(func, 1000);
3+
setTimeout(func, settings.get('timeOutCapture'));
44
function func(){
55
screenshotMsg.value = 'Gathering screens...'
66
const thumbSize = determineScreenShotSize()

settings.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ Next, in console enter `settings.set(optionName, optionValue)`
55

66
By version 0.11, allowed optionName's are:
77
* developerKey : Change developer console key : int
8+
* timeOutCapture : Change capture timer time : int
89

910
Supported optionValue's:
1011
* int
1112
* string
1213
* object
1314

1415
For example, to change **developerKey** to **F10**, enter `settings.set("developerKey", 121)`
16+
Changing **timeOutCapture** to **3000** - `settings.set("timeOutCapture", 3000)`

0 commit comments

Comments
 (0)