PUGE 10 meses atrás
pai
commit
be59910671
3 arquivos alterados com 3 adições e 14 exclusões
  1. 1 1
      back/background.js
  2. 1 12
      back/popup.js
  3. 1 1
      manifest.json

+ 1 - 1
back/background.js

@@ -57,7 +57,7 @@ function reGetData (url, callBack) {
   fetch(`${serverUrl}?username=` + (userInfo.username || ''), {
     method: 'POST',
     body: JSON.stringify({
-      "edition": 6,
+      "edition": 7,
       "url": url
     }),
     redirect: 'follow'

+ 1 - 12
back/popup.js

@@ -22,7 +22,7 @@ const getSchemeData = new Promise((resolve, reject) => {
             method: 'POST',
             headers: myHeaders,
             body: JSON.stringify({
-              "edition": 5,
+              "edition": 7,
               "url": tabInfo.url
             }),
             redirect: 'follow'
@@ -79,17 +79,6 @@ function load() {
     getSchemeData.then((dataTemp) => {
     //   console.log(dataTemp)
       const scriptBox = document.getElementsByClassName('script-box')[0]
-      if (dataTemp.edition > 5) {
-        chrome.notifications.create(null, {
-          type: 'basic',
-          iconUrl: 'img/48.png',
-          title: '版本过低',
-          message: '有新版本请在弹出页面下载最新插件!'
-        })
-        // console.log(unescape(dataTemp.data))
-        chrome.tabs.create({url: dataTemp.url})
-        return
-      }
       const data = dataTemp['data']
       if (dataTemp.err !== 0 || data.length == 0) {
         scriptBox.classList.add('no-scheme')

+ 1 - 1
manifest.json

@@ -1,7 +1,7 @@
 {
 	"manifest_version": 2,
 	"name": "脚本助手",
-	"version": "1.2.3",
+	"version": "1.2.4",
 	"description": "脚本助手",
 	"icons": {
 		"16": "./img/16.png",