Add a check for name in Firefox/Safari

Change-Id: I89649cb9415d34b769a54a277d51ce722ffe146b
This commit is contained in:
Becky Siegel
2018-03-29 21:58:29 +00:00
parent d38684a0d2
commit b813d45088

View File

@@ -439,7 +439,12 @@
console.warn(`${name} install failed: ${e.name}: ${e.message}`);
}
// Don't double count plugins that may have an html and js install.
if (!existingPlugin) {
// TODO(beckysiegel) remove name check once name issue is resolved.
// If there isn't a name, it's due to an issue with the polyfill for
// html imports in Safari/Firefox. In this case, other plugin related
// features may still be broken, but still make sure to call.
// _pluginInstalled.
if (!name || !existingPlugin) {
Gerrit._pluginInstalled();
}
};