Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
pleroma-fe
Commits
a42a207e
There was a problem fetching the pipeline summary.
Commit
a42a207e
authored
6 years ago
by
HJ
Browse files
Options
Downloads
Patches
Plain Diff
fix v2 on v1
parent
91272dc5
Branches
bugfix/object-fetching-handle-mrf-reject
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!380
WIP: themes v2: fix white screen on v1 with v2 theme in indexedDB (keeping this in case anyone needs it)
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/services/style_setter/style_setter.js
+6
-0
6 additions, 0 deletions
src/services/style_setter/style_setter.js
with
6 additions
and
0 deletions
src/services/style_setter/style_setter.js
+
6
−
0
View file @
a42a207e
...
...
@@ -58,6 +58,12 @@ const setColors = (col, commit) => {
const
body
=
document
.
body
body
.
style
.
display
=
'
none
'
// This prevents white screen with v2 themes on v1 engine
if
(
!
col
.
text
)
{
body
.
style
.
display
=
'
initial
'
return
}
const
styleEl
=
document
.
createElement
(
'
style
'
)
head
.
appendChild
(
styleEl
)
const
styleSheet
=
styleEl
.
sheet
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment