Skip to content

Commit 6b2710c

Browse files
authored
Meta: Make bundles smaller (#3020)
1 parent 90a5636 commit 6b2710c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,11 @@ export const _isRepoSettings = [
325325

326326
export const isRepoTree = (): boolean => isRepoRoot() || String(getRepoPath()).startsWith('tree/');
327327
export const _isRepoTree = [
328+
..._isRepoRoot,
328329
'https://github.com/sindresorhus/refined-github/tree/master/distribution',
329330
'https://github.com/sindresorhus/refined-github/tree/0.13.0/distribution',
330331
'https://github.com/sindresorhus/refined-github/tree/57bf435ee12d14b482df0bbd88013a2814c7512e/distribution'
331-
].concat(_isRepoRoot);
332+
];
332333

333334
export const isRepoWithAccess = (): boolean => isRepo() && select.exists('.reponav-item[href$="/settings"]');
334335
export const _isRepoWithAccess = domBased;

0 commit comments

Comments
 (0)