Initial commit
This commit is contained in:
14
options.js
Normal file
14
options.js
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
$('#emailDelay').change((event) => {
|
||||
chrome.storage.sync.set({ emailDelay: parseInt(event.target.value) });
|
||||
});
|
||||
|
||||
$('#calendarDelay').change((event) => {
|
||||
chrome.storage.sync.set({ calendarDelay: parseInt(event.target.value) });
|
||||
});
|
||||
|
||||
chrome.storage.sync.get(null, (data) => {
|
||||
$('#emailDelay').val(data.emailDelay);
|
||||
$('#calendarDelay').val(data.calendarDelay);
|
||||
});
|
||||
Reference in New Issue
Block a user