Comments (5)
I tried in a separate branch (b9d689d), I don't know what's up with this:
Why do you think this is happening?
from ghosttext-for-chrome.
I got the same error when setting using "activeTab". It seems that chrome handles the background.js in another way, where the background.js scripts acts as a part of the content script, when using this option. Since a HTTP server does net sends a asterisks CORS header by default this error is the same when doing an normal ajax request with another url not matching the site delivering URL.
Maybe a chrome bug or is the documentation here https://developer.chrome.com/extensions/activeTab is poor?
from ghosttext-for-chrome.
activeTab
is not the issue, that permission is in the master branch and it works; chrome.tabs.executeScript
is. I think it somehow messes something up, it does look like a bug. :(
from ghosttext-for-chrome.
Of course the bug was in my head. I didn't RTFM. The only problem was that the content script had the permission to access all sites, but executeScript required that permission anyway in the permissions
parameter. So this fixed it
"permissions": [
"activeTab", "http://localhost/"
],
from ghosttext-for-chrome.
from ghosttext-for-chrome.
Related Issues (20)
- Time to celebrate HOT 2
- Support fields within frames (Disqus) HOT 13
- Keyboard hotkey for Linux collides with "Show bookmarks bar" HOT 3
- ⌘ + K key binding in Chrome Extension is already used HOT 3
- Make input-area.js Firefox compatible
- Support of g_editable elements HOT 1
- Highlight keeps on connection error HOT 5
- Fails after switching to Sublime Text (OSX 10.9.4, Sublime Text 3) HOT 5
- Events, mono-repo discussion HOT 12
- On pressing ctrl+shift+h, 4-5 sublime windows pop up and the text-to-chrome doesn't work HOT 4
- GhostText can't handle multiple file tabs in Codecademy HOT 2
- No longer working in Chrome HOT 2
- Ghost is opening 2 to 7 tabs when clicking in HOT 5
- Ghosttext fills the Chrome developer console with "Array[2]" #52
- Ghost Text Says that it is running and to switch to console, but no code opens
- blank render HOT 3
- Doesn't seem to work with the latest Chrome HOT 4
- ISSUES MOVED, open them in the main repo:
- How do I activate Ghosttext?
- Multi-caret editing. Sublime text 3 + Chrome HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghosttext-for-chrome.