Skip to content

Commit

Permalink
feat: 定制化组件修改与小说阅读器的双向事件监听的方案 #1259
Browse files Browse the repository at this point in the history
  • Loading branch information
Espoir-L committed Oct 11, 2018
1 parent fc3e7fd commit efc0afe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mip-custom/mip-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ define(function () {
*
*/
function getCurrentWindow () {
let pageId = window.MIP.viewer.page.currentPageId
let pageInfo = window.MIP.viewer.page.getPageById(pageId)
var pageId = window.MIP.viewer.page.currentPageId;
var pageInfo = window.MIP.viewer.page.getPageById(pageId);
return pageInfo.targetWindow
}

Expand Down Expand Up @@ -287,6 +287,8 @@ define(function () {
var performance = {};
performance.fetchStart = new Date() - 0;
var paramUrl = url

// 小说的特殊参数——novelData和fromSearch
if (me.novelData) {
var novelData = encodeURIComponent(JSON.stringify(me.novelData))
paramUrl = paramUrl + '&novelData=' + novelData
Expand Down

0 comments on commit efc0afe

Please sign in to comment.