Skip to content

Commit f63948d

Browse files
authored
Merge pull request #142 from codeitcodes/dev
Dev
2 parents e28549b + 35ed682 commit f63948d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

manifest.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,21 @@ let manifest = {
2121
],
2222
"file_handlers": [
2323
{
24-
"action": window.location.origin + "/full?file=true",
25-
"name": "Code",
24+
"action": window.location.origin + "/full",
2625
"accept": {
27-
"text/*": [".js", ".json", ".html", ".css", ".htm", ".svg", ".ts", ".mjs", ".py", ".scss"]
26+
"text/css": [".css"]
2827
}
2928
}
3029
],
3130
"share_target": {
32-
"action": window.location.origin + "/full?file=true",
31+
"action": window.location.origin + "/full",
3332
"method": "POST",
3433
"enctype": "multipart/form-data",
3534
"params": {
3635
"files": [
3736
{
3837
"name": "file",
39-
"accept": ["text/*", ".js", ".json", ".html", ".css", ".htm", ".svg", ".ts", ".mjs", ".py", ".scss"]
38+
"accept": ["text/css", "application/json", ".css"]
4039
}
4140
]
4241
}

repos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async function fetchRepoAndSaveToModRepos(treeLoc) {
120120

121121
(tempRepo.selBranch ?? repo.default_branch),
122122

123-
(tempRepo.pushAccess ?? (repo.permissions.push ?? false)),
123+
(tempRepo.pushAccess ?? ((repo.permissions && repo.permissions.push) ?? false)),
124124

125125
(tempRepo.branches ?? null),
126126

utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ let isLandscape = window.matchMedia('(orientation: landscape)').matches;
169169

170170
let isOffline = !window.navigator.onLine;
171171

172+
let isEmbed = (window.top !== window);
173+
172174
if (isMobile) {
173175

174176
body.classList.add('mobile');

0 commit comments

Comments
 (0)