Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/prefs.js

Issue 29458601: Issue 5315 - Add support for Microsoft Edge (Closed)
Patch Set: Created June 7, 2017, 12:41 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/prefs.js
===================================================================
--- a/lib/prefs.js
+++ b/lib/prefs.js
@@ -274,7 +274,7 @@
let managedLoaded = new Promise(resolve =>
{
- if (require("info").platform == "chromium" && "managed" in chrome.storage)
+ if (typeof chrome == "object" && "managed" in chrome.storage)
Sebastian Noack 2017/06/07 14:42:14 Won't typeof chrome == "object" always evaluate to
kzar 2017/06/08 10:50:27 I thought so too, but maybe we're missing somethin
Sebastian Noack 2017/06/08 10:59:19 Most likely, when this change was intially authore
kzar 2017/06/08 11:37:43 Yea, that's true. Just thought I'd mention it sinc
Oleksandr 2017/06/14 03:41:01 Yes. This was for issue #3705. It doesn't look lik
Sebastian Noack 2017/06/14 05:13:38 Yeah, please remove the platform check, so that sh
{
chrome.storage.managed.get(null, items =>
{

Powered by Google App Engine
This is Rietveld