Sha256: 7ca04839c8ec489abefeaecdf436837abf111b6b39eeaff649e858937d9ffc62
Contents?: true
Size: 394 Bytes
Versions: 4
Compression:
Stored size: 394 Bytes
Contents
pw.component.register('fastlink', function (view, config) { if (window.history) { view.node.addEventListener('click', function (evt) { // don't break open in new tab! if (evt.metaKey || evt.ctrlKey) return; evt.preventDefault(); window.history.pushState({ uri: this.href }, this.href, this.href); return false; }); } else { // unsupported } });
Version data entries
4 entries across 4 versions & 1 rubygems