Firefox add-on sdk uninstall hook -


i keep user data in simple-storage. when user uninstalls add-on want remove user data. there event or similar?

this work in every file:

require("sdk/system/unload").when(function(reason) {   if (reason == "uninstall") {     // uninstall stuff..   } }); 

Comments

Popular posts from this blog

ruby - How do I merge two hashes into a hash of arrays? -

c++ - Do gcc's __float128 floating point numbers take the current rounding mode into account? -