430 if url.scheme() in ("eric", "qthelp") else |
430 if url.scheme() in ("eric", "qthelp") else |
431 self.SafeJsWorld |
431 self.SafeJsWorld |
432 ) |
432 ) |
433 if worldId != self.__channelWorldId: |
433 if worldId != self.__channelWorldId: |
434 self.__channelWorldId = worldId |
434 self.__channelWorldId = worldId |
435 try: |
435 self.setWebChannel(channel, self.__channelWorldId) |
436 self.setWebChannel(channel, self.__channelWorldId) |
|
437 except TypeError: |
|
438 # pre Qt 5.7.0 |
|
439 self.setWebChannel(channel) |
|
440 |
436 |
441 def certificateError(self, error): |
437 def certificateError(self, error): |
442 """ |
438 """ |
443 Public method to handle SSL certificate errors. |
439 Public method to handle SSL certificate errors. |
444 |
440 |