Use hooks rather than local storage to detect extension installation