zhangwei před 3 roky
rodič
revize
b472df92c0

+ 8 - 4
src/manifest.development.json

@@ -23,7 +23,8 @@
     "content_scripts": [
         {
             "matches": [
-                "<all_urls>"
+                "https://*.twitter.com/*",
+                "https://twitter.com/*"
             ],
             "run_at": "document_start",
             "js": [
@@ -31,9 +32,12 @@
             ]
         }
     ],
-    "host_permissions": [
-        "*://*/*",
-        "https://testh5.denetme.net"
+      "host_permissions": [
+        // "*://*/*",
+        "https://twitter.com",
+        "https://testh5.denetme.net",
+        "https://h5.denetme.net",
+        "https://preh5.denetme.net"
     ],
     "permissions": [
         "tabs",

+ 7 - 3
src/manifest.pre.json

@@ -23,7 +23,8 @@
     "content_scripts": [
         {
             "matches": [
-                "<all_urls>"
+                "https://*.twitter.com/*",
+                "https://twitter.com/*"
             ],
             "run_at": "document_start",
             "js": [
@@ -31,8 +32,11 @@
             ]
         }
     ],
-    "host_permissions": [
-        "*://*/*",
+      "host_permissions": [
+        // "*://*/*",
+        "https://twitter.com",
+        "https://testh5.denetme.net",
+        "https://h5.denetme.net",
         "https://preh5.denetme.net"
     ],
     "permissions": [

+ 8 - 4
src/manifest.production.json

@@ -23,7 +23,8 @@
     "content_scripts": [
         {
             "matches": [
-                "<all_urls>"
+                "https://*.twitter.com/*",
+                "https://twitter.com/*"
             ],
             "run_at": "document_start",
             "js": [
@@ -31,9 +32,12 @@
             ]
         }
     ],
-    "host_permissions": [
-        "*://*/*",
-        "https://h5.denetme.net"
+      "host_permissions": [
+        // "*://*/*",
+        "https://twitter.com",
+        "https://testh5.denetme.net",
+        "https://h5.denetme.net",
+        "https://preh5.denetme.net"
     ],
     "permissions": [
         "tabs",

+ 1 - 1
src/view/popup/top-up/home.vue

@@ -17,7 +17,7 @@ let top_up_info = inject('top_up_info')
 
 function selectCurrency(_params) {
     top_up_info.token = _params.currencyName || ''
-    top_up_info.net = _params.tokenChain || 'BNB Chain'
+    top_up_info.token_chain = _params.tokenChain || 'BNB Chain'
     top_up_info.currency_code = _params.currencyCode
     top_up_info.icon_token = _params.iconPath || ''
     top_up_info.icon_net = require('@/assets/svg/icon-BNB.svg')

+ 2 - 2
src/view/popup/top-up/info.vue

@@ -19,7 +19,7 @@
                     <div class="title">NetWork</div>
                     <div class="box">
                         <img :src="top_up_info.icon_net" alt="">
-                        <span>{{ top_up_info.net }}</span>
+                        <span>{{ top_up_info.token_chain }}</span>
                     </div>
                 </div>
             </div>
@@ -106,7 +106,7 @@ const copyToken = () => {
 onMounted(() => {
     getTokenRechargeAddress({
         params: {
-            "tokenChain": top_up_info.net
+            "tokenChain": top_up_info.token_chain
         },
     }).then((res) => {
         switch (res.code.toString()) {

+ 2 - 2
src/view/popup/withdraw/confirm.vue

@@ -17,7 +17,7 @@
                 </div>
                 <div class="item">
                     <div class="key">Network</div>
-                    <div class="val">{{ withdraw_info.net }}</div>
+                    <div class="val">{{ withdraw_info.token_chain }}</div>
                 </div>
                 <div class="info-warn">
                     Ensure the network is correct
@@ -76,7 +76,7 @@ const clickBtn = () => {
         params: {
             "amountValue": withdraw_info.data.amount,
             "currencyCode": withdraw_info.currency_code,
-            "withdrawNetwork": withdraw_info.net,
+            "withdrawNetwork": withdraw_info.token_chain,
             "withdrawReceiveAccount": withdraw_info.data.input_address
         }
     }).then((res) => {

+ 1 - 1
src/view/popup/withdraw/home.vue

@@ -23,7 +23,7 @@ function selectCurrency(_params) {
         withdraw_info.source = 'home'
         withdraw_info.balance = _params.balance
         withdraw_info.token = _params.currencyName || ''
-        withdraw_info.net = _params.tokenChain || 'BNB Chain'
+        withdraw_info.token_chain = _params.tokenChain || 'BNB Chain'
         withdraw_info.currency_code = _params.currencyCode
         withdraw_info.icon_token = _params.iconPath || ''
         withdraw_info.icon_net = require('@/assets/svg/icon-BNB.svg')

+ 3 - 3
src/view/popup/withdraw/info.vue

@@ -17,7 +17,7 @@
           <div class="title">NetWork</div>
           <div class="box">
             <img :src="withdraw_info.icon_net" alt="">
-            <span>{{ withdraw_info.net }}</span>
+            <span>{{ withdraw_info.token_chain }}</span>
             <!-- <img :src="require('@/assets/svg/icon-botton-up.svg')" alt="" class="up"> -->
           </div>
         </div>
@@ -84,7 +84,7 @@ const inputWithdrawCalcFee = () => {
     params: {
       "amountValue": state.input_amount,
       "currencyCode": withdraw_info.currency_code,
-      "withdrawNetwork": withdraw_info.net
+      "withdrawNetwork": withdraw_info.token_chain
     }
   }).then((res) => {
     if (res.code == 0) {
@@ -141,7 +141,7 @@ const initConfig = () => {
   getWithdrawConfig({
     params: {
       "currencyCode": withdraw_info.currency_code,
-      "withdrawNetwork": withdraw_info.net
+      "withdrawNetwork": withdraw_info.token_chain
     }
   }).then((res) => {
     switch (res.code.toString()) {