This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: Jason Farrell | |
* Author URI: http://useallfive.com/ | |
* | |
* Description: Checks if a DOM element is truly visible. | |
* Package URL: https://github.com/UseAllFive/true-visibility | |
*/ | |
function isVisible(node) { | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Polymer Starter Kit App | |
// my-app, in `ready` callback | |
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker.register('/service-worker.js') | |
.then((registration) => { | |
registration.onupdatefound = (event) => { | |
let installingWorker = registration.installing; | |
installingWorker.onstatechange = (event) => { |
NewerOlder