Skip to content

Commit

Permalink
add remote fetch of welcome page
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-vdm committed Sep 25, 2024
1 parent 6ebca06 commit 2075033
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions activity_browser/layouts/panels/right.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ class RightPanel(ABTab):
def __init__(self, *args):
super(RightPanel, self).__init__(*args)
package_dir = Path(__file__).resolve().parents[2]
html_file = str(package_dir.joinpath("static", "startscreen", "welcome.html"))

try:
file = RestrictedWebViewWidget("https://raw.githubusercontent.com/LCA-ActivityBrowser/activity-browser/refs/heads/main/activity_browser/static/startscreen/welcome.html")
except:
# use local fallback if we fail to connect
html_file = str(package_dir.joinpath("static", "startscreen", "welcome.html"))
file = RestrictedWebViewWidget(html_file=html_file)

self.tabs = {
"Welcome": RestrictedWebViewWidget(html_file=html_file),
"Welcome": file,
"Characterization Factors": CharacterizationFactorsTab(self),
"Activity Details": ActivitiesTab(self),
"LCA Setup": LCASetupTab(self),
Expand Down

0 comments on commit 2075033

Please sign in to comment.