| var idx = window.location.search.indexOf(key + "="); |
| value = window.location.search.substring(idx).split('&')[0]; |
| var permission = getParam('permission'); |
| var host = getParam('host'); |
| if (permission == 'include') { |
| message = 'The host at ' + host + ' is allowed to use the plugin'; |
| } else if (permission == 'exclude') { |
| message = 'The host at ' + host + ' has been been blacklisted.'; |
| } else if (permission == 'unknown') { |
| message = 'The host at ' + host + ' is unknown to the plugin.'; |
| document.getElementById('message').innerText = message; |
| function updateConfiguration() { |
| var url = 'DevModeOptions.html?host=' + getParam('host'); |
| url = chrome.extension.getURL(url); |
| chrome.tabs.create({'url' : url}); |
| <body onload='javascript:init()'> |
| <h3>GWT Developer Plugin</h3> |
| <button onclick= "updateConfiguration()">Update Your Configuration</button> |