Skip to content

Commit

Permalink
透传去掉sf header参数 (mipengine#346)
Browse files Browse the repository at this point in the history
* 透传去掉sf header参数

* 修改mip1去除head逻辑

* 去掉多余注释

* 根据cr修改规范

* 删除多提交的package-lock.json文件
  • Loading branch information
apple01150525 authored Oct 22, 2018
1 parent 3b4680f commit 4af5d64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ define(function (require) {
var messageKey = 'loadiframe';
var messageData = {};
messageData.url = this.href;
if (this.hasAttribute('no-head')) {
messageData.nohead = true;
}
if (this.hasAttribute('mip-link')) {
var parent = this.parentNode;
messageData.title = parent.getAttribute('title') || parent.innerText.trim().split('\n')[0];
Expand Down

0 comments on commit 4af5d64

Please sign in to comment.