Skip to content

Commit

Permalink
Hot fix: make it work again in Chrome 17 (stable).
Browse files Browse the repository at this point in the history
Closes #25.
  • Loading branch information
NV committed Feb 12, 2012
1 parent f3ada43 commit f733a5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chrome/devtools.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@

function updateLastStylesheet() {
lastStylesheet = null;
chrome.devtools.inspectedWindow.eval('(function() {\n\
chrome.experimental.devtools.inspectedWindow.eval('(function() {\n\
var links = document.querySelectorAll("link[rel=stylesheet][href]");\n\
var last = links && links.length && links[links.length - 1];\n\
return last && last.href})()', function(href, fail) {
if (fail) return;
chrome.devtools.inspectedWindow.getResources(function(resources) {
chrome.experimental.devtools.inspectedWindow.getResources(function(resources) {
var i = resources.length;
while (i--) {
var resource = resources[i];
Expand Down
2 changes: 1 addition & 1 deletion chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "DevTools autosave",
"version": "1.1",
"version": "1.1.1",
"description": "Pushes changes in CSS and JS files to the server",

"devtools_page": "devtools.html",
Expand Down

0 comments on commit f733a5f

Please sign in to comment.