Commit b73ce19b authored by techird's avatar techird

share连接向后兼容

parent 2fe7b23a
...@@ -179,7 +179,7 @@ $( function () { ...@@ -179,7 +179,7 @@ $( function () {
// 检查 URL 是否分享连接,是则加载分享内容 // 检查 URL 是否分享连接,是则加载分享内容
function loadShare() { function loadShare() {
var pattern = /shareId=(\w+)([&#]|$)/; var pattern = /(?:shareId|share_id)=(\w+)([&#]|$)/;
var match = pattern.exec( window.location ) || pattern.exec( document.referrer ); var match = pattern.exec( window.location ) || pattern.exec( document.referrer );
if ( !match ) return; if ( !match ) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment