Skip to content

Commit

Permalink
Remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Nov 5, 2020
1 parent 863887b commit 76c1caf
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions assets/src/admin/paired-browsing/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,13 @@ class PairedBrowsingApp {
*/
ampIframe;

/**
* Whether the AMP window is loading.
*
* @type {boolean}
*/
ampWindowLoading = false;

/**
* Non-AMP IFrame
*
* @type {HTMLIFrameElement}
*/
nonAmpIframe;

/**
* Whether the non-AMP window is loading.
*
* @type {boolean}
*/
nonAmpWindowLoading = false;

/**
* Current AMP URL.
*
Expand Down Expand Up @@ -325,12 +311,6 @@ class PairedBrowsingApp {
replaceLocation( iframe, url ) {
// @todo If disconneted we canot send the replaceLocation message.

if ( iframe === this.ampIframe ) {
this.ampWindowLoading = true;
} else {
this.nonAmpWindowLoading = true;
}

this.sendMessage(
iframe.contentWindow,
'replaceLocation',
Expand Down Expand Up @@ -456,12 +436,6 @@ class PairedBrowsingApp {
return;
}

if ( isAmpSource ) {
this.ampWindowLoading = false;
} else {
this.nonAmpWindowLoading = false;
}

document.title = documentTitlePrefix + ' ' + documentTitle;

history.replaceState(
Expand Down

0 comments on commit 76c1caf

Please sign in to comment.