Helpviewer/WebPlugins/ClickToFlash/ClickToFlashPlugin.py

changeset 3035
36e9f388958b
parent 2954
bf0215fe12d1
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3034:7ce719013078 3035:36e9f388958b
146 146
147 @param host host to check for (string) 147 @param host host to check for (string)
148 @return flag indicating presence in the whitelist (boolean) 148 @return flag indicating presence in the whitelist (boolean)
149 """ 149 """
150 return host in self.__whitelist or \ 150 return host in self.__whitelist or \
151 "www." + host in self.__whitelist or \ 151 "www." + host in self.__whitelist or \
152 host.replace("www.", "") in self.__whitelist 152 host.replace("www.", "") in self.__whitelist
153 153
154 def addToWhitelist(self, host): 154 def addToWhitelist(self, host):
155 """ 155 """
156 Public method to add a host to the whitelist. 156 Public method to add a host to the whitelist.
157 157

eric ide

mercurial