diff --git a/full.html b/full.html index b77037bcb0..0daef1bd2a 100644 --- a/full.html +++ b/full.html @@ -12,8 +12,6 @@ - - diff --git a/index.html b/index.html index 6a43de2d80..38b47cdbaf 100644 --- a/index.html +++ b/index.html @@ -13,8 +13,6 @@ - - diff --git a/manifest.js b/manifest.js index e7c3ac7cf0..aea661574a 100644 --- a/manifest.js +++ b/manifest.js @@ -19,20 +19,13 @@ let manifest = { "purpose": "any" } ], - "capture_links": "existing_client_event", "file_handlers": [ { "action": window.location.origin + "/full?file=true", + "name": "Code", "accept": { "text/*": [".js", ".json", ".html", ".css", ".htm", ".svg", ".ts", ".mjs", ".py", ".scss"] - }, - "icons": [ - { - "src": window.location.origin + "/icons/file.png", - "sizes": "256x256", - "type": "image/png" - } - ] + } } ], "share_target": { @@ -48,12 +41,10 @@ let manifest = { ] } }, - "url_handlers": [ - { - "origin": window.location.origin - } - ], - "display_override": ["window-controls-overlay"] + "handle_links": "preferred", + "launch_handler": { + "route_to": "new-client" + } }; diff --git a/utils.js b/utils.js index 83e5c36244..3347066880 100644 --- a/utils.js +++ b/utils.js @@ -257,7 +257,7 @@ const fileTypes = { 'css': ['css', 'scss'], 'javascript': ['js', 'ts', 'mjs', 'jsx'], 'json': ['json'], - 'python': ['python'], + 'python': ['py', 'python'], 'markdown': ['md'], 'midi': ['midi'], 'pdf': ['pdf']