Customize: Prevent `history.replaceState()` and `history.pushState()` calls from causing error in customize preview before DOM ready.

Amends [41597].
See #39896.
Fixes #42414.


git-svn-id: https://develop.svn.wordpress.org/trunk@42108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-11-02 19:26:23 +00:00
parent dc3c350eab
commit 884fa6476e
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
newQueryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
newQueryParams.customize_changeset_uuid = oldQueryParams.customize_changeset_uuid;
if ( api.settings.changeset.autosaved ) {
if ( oldQueryParams.customize_autosaved ) {
newQueryParams.customize_autosaved = 'on';
}
if ( oldQueryParams.customize_theme ) {