Skip to content

Commit ee6751e

Browse files
committed
let's just hardcode the license
1 parent 1bd3276 commit ee6751e

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

assets/js/index.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,3 @@ fetch(resURL, {
158158
document.getElementById('apklab_version').innerHTML = `<b>Release ${data[0].name}</b>`
159159
})
160160
.catch(error => console.log(error));
161-
162-
//get project license
163-
resURL = 'https://api.github.com/repos/APKLab/APKLab/license'
164-
fetch(resURL, {
165-
headers: {
166-
'Accept': 'application/vnd.github.v3+json',
167-
},
168-
})
169-
.then(res => res.json())
170-
.then(data => {
171-
document.getElementById('apklab_license').innerText = data.license.spdx_id
172-
})
173-
.catch(error => console.log(error));

layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h1 class="mt-0">{{ .Title }}</h1>
88
<p class="lead">{{ .Params.Lead | safeHTML }}</p>
99
<p class="meta">{{ .Params.Description | safeHTML }}</p>
1010
<a class="btn btn-primary btn-lg px-4 mb-2" href='{{ "docs/user-guide/getting-started/" | absURL }}' role="button">Get started</a>
11-
<p class="meta">OpenSource <span id="apklab_license"></span> Licensed. <a id="apklab_version" href="https://github.com/APKLab/APKLab"></a></p>
11+
<p class="meta">OpenSource AGPL-3.0 Licensed. <a id="apklab_version" href="https://github.com/APKLab/APKLab"></a></p>
1212
</div>
1313
</div>
1414
</section>

0 commit comments

Comments
 (0)