1 <!doctype html> 2 <html> 3 <head> 4 <title>Proxy Configuration Extension Background Page</title> 5 </head> 6 <body> 7 <!-- 8 Here, we'll hook into the proxy extension API's `onProxyError` 9 event, and use it to set a warning badge on the browser action's icon. 10 Additionally, we'll store proxy settings locally, and reset them when the 11 background page initializes. This is essential, as incognito settings 12 are wiped on restart. 13 --> 14 <script src="./proxy_form_controller.js"></script> 15 <script src="./proxy_error_handler.js"></script> 16 <script> 17 var errorHandler = new ProxyErrorHandler(); 18 19 // If this extension has already set the proxy settings, then reset it 20 // once as the background page initializes. This is essential, as 21 // incognito settings are wiped on restart. 22 var persistedSettings = ProxyFormController.getPersistedSettings(); 23 if (persistedSettings !== null) { 24 chrome.experimental.proxy.settings.set( 25 {'value': persistedSettings.regular}); 26 } 27 </script> 28 </body> 29 </html> 30