Skip to content

Commit aae937b

Browse files
authored
Update script.js
1 parent 27165e2 commit aae937b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

script.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Configuration
22
const CONFIG = {
3-
// Change this to your GitHub username/org and repo
43
owner: 'nullcpy',
54
repo: 'rvb',
65
// Cache duration in minutes
@@ -505,24 +504,29 @@ function createObtainiumInstructions() {
505504
<strong>No APK URLs found for this patch.</strong>
506505
</div>`;
507506

507+
const betaPrereleaseStepMarkup = modalBuildFilter === 'beta'
508+
? '<li>Enable include prereleases.</li>'
509+
: '';
510+
508511
return `
509512
<div class="obtainium-instructions">
510513
<ol>
511514
<li>Download and install Obtainium from <a href="${obtainiumLatestUrl}" target="_blank" rel="noopener noreferrer">GitHub</a>.</li>
512515
<li>Open Obtainium on your device.</li>
513516
<li>Tap Add app.</li>
514-
<li>In the App source URL box, enter:
517+
<li>In the app source URL box, enter:
515518
<div class="instruction-code">
516519
<code>${escapeHtml(repoUrl)}</code>
517520
<button type="button" class="copy-btn" ${copyCode(repoUrl)}>Copy</button>
518521
</div>
519522
</li>
520-
<li>Scroll down to Filter APKs by regular expression and use any of these unique regex values (generated from download URLs):
523+
<li>Scroll down to filter APKs by regular expression and enter regex for the APK you want:
521524
<div class="filter-examples">
522525
${selectedExamplesMarkup}
523526
</div>
524527
</li>
525-
<li>Tap Add to begin downloading. In future, Obtainium will automatically fetch updates when new releases are published.</li>
528+
${betaPrereleaseStepMarkup}
529+
<li>Tap add to begin downloading. In future, Obtainium will automatically fetch updates when new releases are published.</li>
526530
</ol>
527531
</div>
528532
`;

0 commit comments

Comments
 (0)