リビジョン | bfd7145d61129cdd8b23d0c3a6c8c2017b2c435d (tree) |
---|---|
日時 | 2020-11-04 12:20:05 |
作者 | Zhiting Lin <zhiting.fly@gmai...> |
コミッター | GitHub |
Merge pull request #19 from movnetwork/dev
Dev
@@ -1,7 +1,7 @@ | ||
1 | 1 | { |
2 | 2 | "name": "Byone", |
3 | 3 | "description": "Bytom Chrome Extension Wallet", |
4 | - "version": "3.0.7", | |
4 | + "version": "3.0.8", | |
5 | 5 | "author": "zhiting.fly@8btc.com", |
6 | 6 | "license": "MIT", |
7 | 7 | "private": true, |
@@ -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 |
@@ -2,7 +2,7 @@ module.exports = { | ||
2 | 2 | manifest_version: 2, |
3 | 3 | name: 'Byone', |
4 | 4 | description: 'Bytom Wallet Chrome extension.', |
5 | - version: '3.0.7', | |
5 | + version: '3.0.8', | |
6 | 6 | author: 'Bytom frontend, zhitinglin', |
7 | 7 | web_accessible_resources: ['js/inject.js'], |
8 | 8 | browser_action: { |
@@ -23,7 +23,7 @@ module.exports = { | ||
23 | 23 | 'clipboardRead', |
24 | 24 | 'background' |
25 | 25 | ], |
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'", | |
27 | 27 | content_scripts: [ |
28 | 28 | { |
29 | 29 | js: ['js/content.js'], |
@@ -1,3 +1,4 @@ | ||
1 | +import './ga.js' | |
1 | 2 | import Vue from 'vue' |
2 | 3 | import moment from 'moment' |
3 | 4 | import VueI18n from 'vue-i18n' |
@@ -1,3 +1,4 @@ | ||
1 | +import './ga.js' | |
1 | 2 | import Vue from 'vue' |
2 | 3 | import moment from 'moment' |
3 | 4 | import VueI18n from 'vue-i18n' |