(win)
| 22 | * @param {!Window} win |
| 23 | */ |
| 24 | export function installAlpClickHandler(win) { |
| 25 | win.document.documentElement.addEventListener('click', handleClick); |
| 26 | // Start loading destination doc when finger is down. |
| 27 | // Needs experiment whether this is a good idea. |
| 28 | win.document.documentElement.addEventListener('touchstart', warmupDynamic); |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Filter click event and then transform URL for direct AMP navigation |
no test coverage detected