[chrome-gnome-shell/feature/extensions_sync: 1/2] Rename DEFAULT_OPTIONS constant to DEFAULT_SYNC_OPTIONS
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell/feature/extensions_sync: 1/2] Rename DEFAULT_OPTIONS constant to DEFAULT_SYNC_OPTIONS
- Date: Tue, 9 Aug 2016 09:40:45 +0000 (UTC)
commit 3f39ffb02977aa997b8d3645acccbba4a90c615f
Author: Yuri Konotopov <ykonotopov gmail com>
Date: Tue Aug 9 12:23:17 2016 +0300
Rename DEFAULT_OPTIONS constant to DEFAULT_SYNC_OPTIONS
extension/extension.js | 2 +-
extension/include/constants.js | 2 +-
extension/include/update.js | 6 +++---
extension/options.js | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/extension/extension.js b/extension/extension.js
index fcb0f74..007e6d9 100644
--- a/extension/extension.js
+++ b/extension/extension.js
@@ -13,7 +13,7 @@ chrome.runtime.onInstalled.addListener(function(details) {
if(details.reason == chrome.runtime.OnInstalledReason.UPDATE && details.previousVersion != version)
{
- chrome.storage.sync.get(DEFAULT_OPTIONS, function (options) {
+ chrome.storage.sync.get(DEFAULT_SYNC_OPTIONS, function (options) {
if(options.showReleaseNotes)
{
chrome.tabs.create({
diff --git a/extension/include/constants.js b/extension/include/constants.js
index 34e9054..c7c1d3f 100644
--- a/extension/include/constants.js
+++ b/extension/include/constants.js
@@ -24,7 +24,7 @@ NATIVE_HOST = 'io.github.ne0sight.gs_chrome_connector';
EXTENSIONS_WEBSITE = 'https://extensions.gnome.org/';
UPDATE_URL = EXTENSIONS_WEBSITE + 'update-info/';
-DEFAULT_OPTIONS = {
+DEFAULT_SYNC_OPTIONS = {
showReleaseNotes: true,
updateCheck: true,
updateCheckPeriod: 6
diff --git a/extension/include/update.js b/extension/include/update.js
index b3a38d0..179f988 100644
--- a/extension/include/update.js
+++ b/extension/include/update.js
@@ -194,14 +194,14 @@ GSC.update = (function($) {
}
else
{
- chrome.storage.sync.get(DEFAULT_OPTIONS, function (options) {
+ chrome.storage.sync.get(DEFAULT_SYNC_OPTIONS, function (options) {
schedule(options.updateCheckPeriod);
});
}
}
else if (changes.updateCheckPeriod)
{
- chrome.storage.sync.get(DEFAULT_OPTIONS, function (options) {
+ chrome.storage.sync.get(DEFAULT_SYNC_OPTIONS, function (options) {
if (options.updateCheck)
{
schedule(options.updateCheckPeriod);
@@ -210,7 +210,7 @@ GSC.update = (function($) {
}
});
- chrome.storage.sync.get(DEFAULT_OPTIONS, function (options) {
+ chrome.storage.sync.get(DEFAULT_SYNC_OPTIONS, function (options) {
if (options.updateCheck)
{
chrome.alarms.get(ALARM_UPDATE_CHECK, function (alarm) {
diff --git a/extension/options.js b/extension/options.js
index 39aeab5..8c8f3a6 100644
--- a/extension/options.js
+++ b/extension/options.js
@@ -30,7 +30,7 @@ function save_options()
function restore_options()
{
- chrome.storage.sync.get(DEFAULT_OPTIONS, function (items) {
+ chrome.storage.sync.get(DEFAULT_SYNC_OPTIONS, function (items) {
setCheckUpdate(items.updateCheck);
$('#update_check_period').val(items.updateCheckPeriod);
setReleaseNotes(items.showReleaseNotes);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]