Chrome plugin event listener

307 views
Skip to first unread message

Vardan Petrosyan

unread,
Aug 1, 2015, 10:50:08 AM8/1/15
to Chromium-extensions
I am working on a chrome extension that needs a bookmark event listener. I wrote this code
chrome.bookmarks.onCreated.addListener(function(id, bookmark){
       
/*Send data to server*/
 
}
);

But my code works only in debug mode (Step by Step executing) (In this mode data achieves to server)

Can anyone suggest what can I do?What is the problem?

Antony Sargent

unread,
Aug 3, 2015, 2:02:46 PM8/3/15
to Vardan Petrosyan, Chromium-extensions
I'd recommend starting with something simple like just using console.log or console.dir to print out the bookmark data inside your event listener. If that prints out ok, then something is going wrong with the code you have for saving to the server. 


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/22542fda-f2c0-4cdf-92df-a735281884e9%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Reply all
Reply to author
Forward
0 new messages