callumlocke/json-formatter — pull request #26 by rm-hull (2013-09-20 09:59:04+00:00)
Title: Chromium 29 reports errors trying to reference chrome.extension

On Chromium 29 / Ubuntu I see the following

```
chrome.extension is not available: 'extension' is not allowed for specified context type content script, extension page, web page, etc.). [VM] binding (409):427
Binding.generate [VM] binding (409):427
(anonymous function) extension:114
(anonymous function) chrome-extension://bcjindcccaagfpapjjmafapmmgkkhgoa/js/content.js:54
(anonymous function) chrome-extension://bcjindcccaagfpapjjmafapmmgkkhgoa/js/content.js:387
Uncaught TypeError: Cannot call method 'connect' of undefined chrome-extension://bcjindcccaagfpapjjmafapmmgkkhgoa/js/content.js:54
(anonymous function) chrome-extension://bcjindcccaagfpapjjmafapmmgkkhgoa/js/content.js:54
(anonymous function) chrome-extension://bcjindcccaagfpapjjmafapmmgkkhgoa/js/content.js:387
```

This used to work on earlier versions of chromium, but maybe the method was deprecated, and they finally removed it. See here for context: https://code.google.com/p/chromium/issues/detail?id=289776#c1

Sorry: there are only two code lines that changed, but for some reason there's some whitespace changes too