Moved the getLocalStorage method to the plugin activator