add overrided function for extension API window.external.getSharedPreferences(string key)