-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from apple01150525/master
feature: 小说阅读器添加白屏率和目录渲染失败率日志打点(#275)
- Loading branch information
Showing
4 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* file: 小说 shell 统一日志发送 | ||
* author: JennyL <[email protected]> | ||
*/ | ||
|
||
/** | ||
* 发送日志 | ||
* @param {string} type 日志类型 | ||
* @param {Object} info 日志信息 | ||
*/ | ||
export function sendWebbLog (type, info) { | ||
let data = Object.assign({info}, { | ||
dim: { | ||
from: 'novel' | ||
} | ||
}) | ||
let eventName = type + '-log' | ||
MIP.viewer.sendMessage(eventName, data) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters