Skip to content
Merged

Dev #142

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,21 @@ let manifest = {
],
"file_handlers": [
{
"action": window.location.origin + "/full?file=true",
"name": "Code",
"action": window.location.origin + "/full",
"accept": {
"text/*": [".js", ".json", ".html", ".css", ".htm", ".svg", ".ts", ".mjs", ".py", ".scss"]
"text/css": [".css"]
}
}
],
"share_target": {
"action": window.location.origin + "/full?file=true",
"action": window.location.origin + "/full",
"method": "POST",
"enctype": "multipart/form-data",
"params": {
"files": [
{
"name": "file",
"accept": ["text/*", ".js", ".json", ".html", ".css", ".htm", ".svg", ".ts", ".mjs", ".py", ".scss"]
"accept": ["text/css", "application/json", ".css"]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function fetchRepoAndSaveToModRepos(treeLoc) {

(tempRepo.selBranch ?? repo.default_branch),

(tempRepo.pushAccess ?? (repo.permissions.push ?? false)),
(tempRepo.pushAccess ?? ((repo.permissions && repo.permissions.push) ?? false)),

(tempRepo.branches ?? null),

Expand Down
2 changes: 2 additions & 0 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ let isLandscape = window.matchMedia('(orientation: landscape)').matches;

let isOffline = !window.navigator.onLine;

let isEmbed = (window.top !== window);

if (isMobile) {

body.classList.add('mobile');
Expand Down