MCPcopy
hub / github.com/ampproject/amphtml / handlePopState_

Method handlePopState_

examples/pwa/pwa.js:116–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 }
115
116 handlePopState_() {
117 const newPage = this.win.location.pathname;
118 log('Pop state: ', newPage, this.currentPage_);
119 if (newPage != this.currentPage_) {
120 this.navigateTo(newPage);
121 }
122 }
123
124 /**
125 * @param {string} path

Callers

nothing calls this directly

Calls 2

navigateToMethod · 0.95
logFunction · 0.70

Tested by

no test coverage detected