I save some user data in simple-storage . When the user disables the add-in, I want to delete this user data. Is there some kind of event or something similar?
simple-storage
This will work in every file:
require("sdk/system/unload").when(function(reason) { if (reason == "uninstall") { // do uninstall stuff.. } });
Try the following:
exports.onUnload = function(reason) { //do stuff for unload here }
Source: https://habr.com/ru/post/975529/More articles:Is it possible to add / remove items from a ListView using the CursorAdapter? - androidAdd New Lines to Email VBA - vbaCommon way to get primary key from declaratively defined instance in SQLAlchemy - pythonVCL Style from DLL affects TMenuItem in application - dllInvalid loading using X-Frame-Options: does not allow cross-contour cropping - phpImplement 3DSecure in InAppBrowser - javascriptAdd vertical slider with matplotlib - pythonIEqualityComparer for anonymous type - c #How to run a script in Pyspark and then put it in an IPython shell? - pythonAnonymous interface implementation - javaAll Articles