Commit 3bf65f59 authored by horo@chromium.org's avatar horo@chromium.org

Clean-up serviceworker-internals page.

- Adhere to the 80-column limit
- Don't show the partition if there is no registrations nor versions.

BUG=358657

Review URL: https://codereview.chromium.org/305353002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274187 0039d316-1c4b-4281-b951-d872f2087c98
parent ec7f257a
...@@ -185,11 +185,11 @@ cr.define('serviceworker', function() { ...@@ -185,11 +185,11 @@ cr.define('serviceworker', function() {
unregistered_versions); unregistered_versions);
var template; var template;
var container = $('serviceworker-list'); var container = $('serviceworker-list');
// Existing templates are keyed by partition_path. This allows // Existing templates are keyed by partition_id. This allows
// the UI to be updated in-place rather than refreshing the // the UI to be updated in-place rather than refreshing the
// whole page. // whole page.
for (var i = 0; i < container.childNodes.length; ++i) { for (var i = 0; i < container.childNodes.length; ++i) {
if (container.childNodes[i].partition_path == partition_path) { if (container.childNodes[i].partition_id == partition_id) {
template = container.childNodes[i]; template = container.childNodes[i];
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment