• R/O
  • HTTP
  • SSH
  • HTTPS

Byone: コミット

Bytom Wallet for Chrome


コミットメタ情報

リビジョンbfd7145d61129cdd8b23d0c3a6c8c2017b2c435d (tree)
日時2020-11-04 12:20:05
作者Zhiting Lin <zhiting.fly@gmai...>
コミッターGitHub

ログメッセージ

Merge pull request #19 from movnetwork/dev

Dev

変更サマリ

差分

--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
11 {
22 "name": "Byone",
33 "description": "Bytom Chrome Extension Wallet",
4- "version": "3.0.7",
4+ "version": "3.0.8",
55 "author": "zhiting.fly@8btc.com",
66 "license": "MIT",
77 "private": true,
--- /dev/null
+++ b/src/ga.js
@@ -0,0 +1,10 @@
1+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
2+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
3+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
4+})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
5+
6+ga('create', 'UA-132067533-1', 'auto');
7+
8+// Modifications:
9+ga('set', 'checkProtocolTask', null); // Disables file protocol checking.
10+ga('send', 'pageview', '/popup'); // Set page, avoiding rejection due to chrome-extension protocol
--- a/src/manifest.js
+++ b/src/manifest.js
@@ -2,7 +2,7 @@ module.exports = {
22 manifest_version: 2,
33 name: 'Byone',
44 description: 'Bytom Wallet Chrome extension.',
5- version: '3.0.7',
5+ version: '3.0.8',
66 author: 'Bytom frontend, zhitinglin',
77 web_accessible_resources: ['js/inject.js'],
88 browser_action: {
@@ -23,7 +23,7 @@ module.exports = {
2323 'clipboardRead',
2424 'background'
2525 ],
26- content_security_policy: "script-src 'self' 'unsafe-eval'; object-src 'self'",
26+ content_security_policy: "script-src 'self' 'unsafe-eval' https://www.google-analytics.com/analytics.js; object-src 'self'",
2727 content_scripts: [
2828 {
2929 js: ['js/content.js'],
--- a/src/popup.js
+++ b/src/popup.js
@@ -1,3 +1,4 @@
1+import './ga.js'
12 import Vue from 'vue'
23 import moment from 'moment'
34 import VueI18n from 'vue-i18n'
--- a/src/prompt.js
+++ b/src/prompt.js
@@ -1,3 +1,4 @@
1+import './ga.js'
12 import Vue from 'vue'
23 import moment from 'moment'
34 import VueI18n from 'vue-i18n'
旧リポジトリブラウザで表示