Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

make platform filter persist between sessions again (bug 1127080) #1066

Merged
merged 1 commit into from Mar 9, 2015

Conversation

ngokevin
Copy link
Contributor

@ngokevin ngokevin commented Mar 9, 2015

No description provided.

ngokevin added a commit that referenced this pull request Mar 9, 2015
make platform filter persist between sessions again (bug 1127080)
@ngokevin ngokevin merged commit 81d0db5 into mozilla:master Mar 9, 2015
@@ -69,7 +71,10 @@ define('compat_filter',
// On desktop, the default is no filtering.
if (actualPlatform == 'desktop') {
actualPlatform = '';
filterDevice = '';

if (!storage.getItem(filterDeviceLSKey)) {
Copy link
Member

Choose a reason for hiding this comment

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

This storage.getItem() call is done twice. Can you refactor the code in a way that would prevent that ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only on desktop, but yeah I can.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants