Changeset 49202
- Timestamp:
- 10/19/2020 01:34:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/embed-template.js
r46586 r49202 138 138 } 139 139 140 /** 141 * Send this document's height to the parent (embedding) site. 142 */ 140 // Send this document's height to the parent (embedding) site. 143 141 sendEmbedMessage( 'height', Math.ceil( document.body.getBoundingClientRect().height ) ); 144 142 … … 162 160 } 163 161 164 /** 165 * Send link target to the parent (embedding) site. 166 */ 162 // Only catch clicks from the primary mouse button, without any modifiers. 163 if ( event.altKey || event.ctrlKey || event.metaKey || event.shiftKey ) { 164 return; 165 } 166 167 // Send link target to the parent (embedding) site. 167 168 if ( href ) { 168 169 sendEmbedMessage( 'link', href );
Note: See TracChangeset
for help on using the changeset viewer.