Plugin Directory

Changeset 3172936


Ignore:
Timestamp:
10/21/2024 01:02:17 PM (18 months ago)
Author:
devsoftbaltic
Message:

fixed https://github.com/surveyjs/surveyjs-wordpress/issues/45

File:
1 edited

Legend:

Unmodified
Added
Removed
  • surveyjs/trunk/views/editor.php

    r3154279 r3172936  
    169169                        creator.text = json;
    170170                        //creator.JSON = surveyJSON;
    171                         if (typeof $themeJson !== "undefined" && $themeJson) {
    172                             creator.theme = JSON.parse('<?php echo htmlspecialchars_decode($themeJson); ?>');
    173                         }
     171                        const themeJSON = JSON.parse('<?php echo htmlspecialchars_decode($themeJson); ?>');
     172                        creator.theme = themeJSON;
    174173                        return (<SurveyCreator.SurveyCreatorComponent creator={creator} />);
    175174                    }
Note: See TracChangeset for help on using the changeset viewer.