Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
188
Issues
188
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
7cdab7fd
Commit
7cdab7fd
authored
2 hours ago
by
Martin Santangelo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat) disable nsfw values for ios
parent
4055a233
master
v3.6.0
No related merge requests found
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
nsfw.service.js
src/common/services/nsfw.service.js
+2
-1
No files found.
src/common/services/nsfw.service.js
View file @
7cdab7fd
import
{
AsyncStorage
}
from
"react-native"
;
import
{
AsyncStorage
,
Platform
}
from
"react-native"
;
class
NsfwService
{
constructor
(
target
)
{
...
...
@@ -13,6 +13,7 @@ class NsfwService {
* @returns {Promise<number[]>}
*/
async
get
()
{
if
(
Platform
.
OS
===
'ios'
)
return
[];
try
{
const
value
=
await
AsyncStorage
.
getItem
(
this
.
_getStorageKey
());
return
value
?
JSON
.
parse
(
value
)
:
[];
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment