OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 document.addEventListener('DOMContentLoaded', function() { | |
6 chrome.contentSettings.plugins.getResourceIdentifiers(function(r) { | |
7 if (chrome.extension.lastError) { | |
8 $('error').textContent = | |
9 "Error: " + chrome.extension.lastError.message; | |
10 return; | |
Mike West
2011/10/25 19:52:06
This means that if the extension ever errors out,
Bernhard Bauer
2011/10/26 13:55:18
I'm not sure there would be much to fix in that ca
| |
11 } | |
12 var pluginList = $('plugin-list'); | |
13 pluginSettings.ui.PluginList.decorate(pluginList); | |
14 pluginList.dataModel = new cr.ui.ArrayDataModel(r); | |
15 }); | |
16 }); | |
OLD | NEW |