Skip to content

Commit

Permalink
Merge pull request #2 from JanluOfficial/revert-1-main
Browse files Browse the repository at this point in the history
Revert "x"
  • Loading branch information
JanluOfficial authored Dec 11, 2024
2 parents 08d7980 + e0d8a04 commit 67a72e1
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import subprocess
import os
import pathlib
from screeninfo import get_monitors

class Api:
def get_wifi_networks(self):
Expand Down Expand Up @@ -43,21 +42,17 @@ def fetch_file(self, type, path):
else:
return 'file://' + path

primaryMonitor = next((m for m in get_monitors() if
m.is_primary), None)

print('Starting AzuOS...')

# Instantiate Api class
api = Api()

webview.settings = {
'ALLOW_FILE_URLS': True,
'ALLOW_DOWNLOADS': True,
'OPEN_DEVTOOLS_IN_DEBUG': False
'ALLOW_FILE_URLS': True
}
webview.create_window('AzuOS', url="index.html", background_color='#000000', fullscreen=True, js_api=api, width=primaryMonitor.width, height=primaryMonitor.height)
# webview.create_window('AzuOS', url="index.html", background_color='#000000', fullscreen=True, js_api=api)

# webview.create_window('AzuOS', url="index.html", background_color='#000000', js_api=api)
webview.create_window('AzuOS', url="index.html", background_color='#000000', js_api=api)

webview.start(debug=True)
webview.start(debug=True)

0 comments on commit 67a72e1

Please # to comment.