Browse Source

fix: remove useless option

Gerald 8 years ago
parent
commit
ec74ee97a3

+ 0 - 11
src/background/sync/base.js

@@ -259,12 +259,6 @@ export const BaseService = serviceFactory({
     }, err => {
       if (err && err.type === 'unauthorized') {
         this.authState.set('unauthorized');
-        if (this.config.get('token') && getOption('syncReauthorize') && !this.config.get('reauthorized')) {
-          this.config.set({
-            reauthorized: true,
-          });
-          this.authorize();
-        }
       } else {
         console.error(err);
         this.authState.set('error');
@@ -553,11 +547,6 @@ export function checkAuthUrl(url) {
   return serviceNames.some(name => {
     const service = services[name];
     const authorized = service.checkAuth && service.checkAuth(url);
-    if (authorized) {
-      service.config.set({
-        reauthorized: false,
-      });
-    }
     return authorized;
   });
 }

+ 0 - 1
src/background/utils/options.js

@@ -16,7 +16,6 @@ const defaults = {
   features: null,
   blacklist: null,
   syncScriptStatus: true,
-  syncReauthorize: true,
   sync: null,
   customCSS: null,
   importSettings: true,

+ 2 - 0
src/options/views/tab-settings/vm-sync.vue

@@ -21,12 +21,14 @@
         <span v-text="i18n('labelSyncScriptStatus')"></span>
       </label>
     </div>
+    <!--
     <div class="mt-1">
       <label>
         <setting-check name="syncReauthorize" />
         <span v-text="i18n('labelSyncReauthorize')"></span>
       </label>
     </div>
+    -->
   </feature>
 </template>