ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by  keganv 2 years, 6 months ago.

  • Creator
    Topic
  • #6340

    keganv
    Participant

    I am trying to create some functionality that creates a localStorage variable. However, in the file oro/platform/Oro/Bundle/AsseticBundle/Resources/views/Assets/oro_css.html.twig I see that there is a check on an “isLess” variable that clears out everything in localStorage. My question is, is it safe to override this file and remove this check and storage clear? If not, how do you propose setting anything to localStorage? Thanks in advance!

    Kegan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #6345

    Alexandr Smaga
    Participant

    Hello.

    It seems that it was added for frontend developers that are working with less files(maybe in order to disable localStorage cache for less). It’s not inside a page by default neither in dev mode nor in production. Did you enable css debug mode or how did you get it there ?

    #6355

    keganv
    Participant

    Hi Alexandr! I did enable css debug mode in my config while developing. For now I’ll set the sessionStorage and change it to localStorage before going to production, (as we will obviously have debug mode off for prod.). Thanks!

    Kegan

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.