|
@@ -3,7 +3,7 @@ import { LANDING_PAGE, LANDING_PAGE_MID, setChromeStorage, setChromeCookie, getC
|
|
|
import { guid } from '@/uilts/help.js'
|
|
|
import { discordAuthRedirectUri } from '@/http/configAPI'
|
|
|
import { setContentMessage } from '@/logic/background/help.js'
|
|
|
-
|
|
|
+import Report from "@/log-center/log"
|
|
|
let authToken = ''
|
|
|
let consumerKey = ''
|
|
|
let tab_flag = true
|
|
@@ -250,7 +250,16 @@ function sendActivetabMessage(message = {}) {
|
|
|
*/
|
|
|
|
|
|
export function onInstalledCreateTab() {
|
|
|
- getChromeCookie(LANDING_PAGE_JUMP_INFO, (res) => {
|
|
|
+ getChromeCookie(LANDING_PAGE_JUMP_INFO, (res = {}) => {
|
|
|
+ setTimeout(() => {
|
|
|
+ // 安装成功埋点
|
|
|
+ Report.reportLog({
|
|
|
+ objectType: Report.objectType.chrome_extension_installed,
|
|
|
+ funcName: 'onInstalledCreateTab',
|
|
|
+ postId: res.postId || ''
|
|
|
+ })
|
|
|
+ }, 5000)
|
|
|
+
|
|
|
// jump_info
|
|
|
if (!res || !res.jump_type) {
|
|
|
chrome.tabs.create({
|