Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the background layer from the them at page load #3382

Merged
merged 1 commit into from Jan 16, 2018
Merged

Conversation

fredj
Copy link
Member

@fredj fredj commented Jan 12, 2018

Correctly set the background layer at page load.

Change: at page load, the theme name is directly set to the url; it was not the case previously.

@sbrunner sbrunner added this to the 2.2 milestone Jan 16, 2018
@@ -922,8 +922,7 @@ gmf.Permalink.prototype.initLayers_ = function() {
const themeName = this.defaultThemeName();

if (this.gmfThemeManager_ && this.gmfThemeManager_.modeFlush) {
// Set theme in stealth mode, we just want to set the theme name, not more.
this.gmfThemeManager_.setThemeName(`${themeName}`, true);
this.gmfThemeManager_.setThemeName(themeName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There a missing goog.asserts.assert ...

@fredj fredj changed the title [wip] Set the background layer from the them at page load Set the background layer from the them at page load Jan 16, 2018
@fredj fredj merged commit 5f4e181 into 2.2 Jan 16, 2018
@fredj fredj deleted the bg_layer_from_theme branch January 16, 2018 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants