debugging - Why is Chrome Extension JavaScript does not get changed? -


i'm trying build chrome extension, based on this one

so have 2 files: manifest.json , sample.js

i make changes on sample.js, apply when reload page, don't. try clearing cache. again, work. i'm stuck.

let's try alert when clicked on context menu,

function onclickhandler(info, tab) {  alert("1"); } 

then change

function onclickhandler(info, tab) {  alert("2"); } 

but keeps alerting 1.

i try clearing cache, closing , re opening chrome, uninstalling , re-installing extension. nothing works.

i hope made myself clear. how make sure extension date sample.js file?

do need disable javascript cache somewhere ?

thanks help..

you should go chrome://extensions/ , click "reload" extension. (or press ctrl/cmd+r reload development extensions might take longer if have bunch)

it's best way make sure extension files reloaded.

another way use extensions reloader. it's extension adds button toolbar reload extensions you. (except changes manifest.json, shouldn't problem since that's not file you'll change most)


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -