[Merge] lp:~abreu-alexandre/webbrowser-app/user-agent-override-fails into lp:webbrowser-app

Olivier Tilloy olivier.tilloy at canonical.com
Tue Dec 2 17:00:00 UTC 2014


27	+        userAgent: {
37	+            if (localUserAgentOverride)
38	+                return localUserAgentOverride
39	+            return __context.defaultUserAgent
40	+        }

This could be written in a more condensed form:

    userAgent: localUserAgentOverride ? localUserAgentOverride : defaultUserAgent

(and you don’t need the extra "__context" id.
-- 
https://code.launchpad.net/~abreu-alexandre/webbrowser-app/user-agent-override-fails/+merge/243286
Your team Ubuntu Phablet Team is subscribed to branch lp:webbrowser-app.



More information about the Ubuntu-reviews mailing list