diff --git a/kivyblocks/blocksapp.py b/kivyblocks/blocksapp.py index 716a9c2..40261c5 100644 --- a/kivyblocks/blocksapp.py +++ b/kivyblocks/blocksapp.py @@ -42,12 +42,6 @@ class ServerInfo: self.publickey = None self.authCode = None - def realurl(url): - if url.startswith('https://') or url.startswith('http://'): - return url - config = getConfig() - return '%s%s' % (config.uihome, url) - def getServerPK(self): config = getConfig() url = '%s%s' % (config.uihome, config.publickey_url) @@ -105,6 +99,12 @@ class BlocksApp(App): return Label(text='error') return x + def realurl(self, url): + if url.startswith('https://') or url.startswith('http://'): + return url + config = getConfig() + return '%s%s' % (config.uihome, url) + def get_user_data_path(self): if platform == 'android': Environment = autoclass('android.os.Environment')