Browse Source
Merge pull request #2975 from meyerco/bug-fix-2849-background-image-is-not-working-properly Fixes #2849
handle case when url is not a base64 format .
pull/2997/head
Artur Arseniev
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/style_manager/model/Property.js
|
|
|
@ -202,7 +202,8 @@ const Property = Backbone.Model.extend( |
|
|
|
} |
|
|
|
|
|
|
|
if (fn && hasValue) { |
|
|
|
value = `${fn}(${value})`; |
|
|
|
const fnParameter = fn === 'url' ? `'${value}'` : value; |
|
|
|
value = `${fn}(${fnParameter})`; |
|
|
|
} |
|
|
|
|
|
|
|
if (hasValue && this.get('important')) { |
|
|
|
|