mirror of
https://github.com/driftywinds/driftywinds.github.io.git
synced 2025-12-20 11:23:56 +00:00
Support AltStore's modern app permissions
This commit is contained in:
15
js/components/AppPermissionItem.js
Normal file
15
js/components/AppPermissionItem.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// AppPermissionItem.js
|
||||
// altsource-viewer (https://github.com/therealFoxster/altsource-viewer)
|
||||
//
|
||||
// Copyright (c) 2023 Foxster.
|
||||
// MIT License.
|
||||
//
|
||||
|
||||
export const AppPermissionItem = (name, icon, details) => `
|
||||
<a class="permission-item"
|
||||
onclick="alert('${details?.replace(/(['"])/g, "\\$1") ?? "altsource-viewer does not have detailed information about this entitlement."}');"
|
||||
>
|
||||
<p><i class="bi-${icon}"></i></p>
|
||||
<p class="title">${name}</p>
|
||||
</a>
|
||||
`;
|
||||
Reference in New Issue
Block a user