Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser.py
diff options
context:
space:
mode:
Diffstat (limited to 'browser.py')
-rw-r--r--browser.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/browser.py b/browser.py
index 80936fa..47be4c6 100644
--- a/browser.py
+++ b/browser.py
@@ -340,10 +340,7 @@ class TabbedView(BrowserNotebook):
def load_homepage(self):
browser = self.current_browser
- if os.path.isfile(_LIBRARY_PATH):
- browser.load_uri('file://' + _LIBRARY_PATH)
-
- elif os.path.isfile(activity.get_bundle_path() + "/data/homepage.conf"):
+ if os.path.isfile(activity.get_bundle_path() + "/data/homepage.conf"):
confFile = os.path.join(activity.get_bundle_path(),"data/homepage.conf")
f = open(confFile,"r")
contents = f.read().strip()
@@ -355,6 +352,8 @@ class TabbedView(BrowserNotebook):
default_page = os.path.join(activity.get_bundle_path(),"data/index.html")
browser.load_uri(default_page)
+ elif os.path.isfile(_LIBRARY_PATH):
+ browser.load_uri('file://' + _LIBRARY_PATH)
else:
default_page = os.path.join(activity.get_bundle_path(),
"data/index.html")