S
S
Shane Matte2016-05-25 08:12:05
JavaScript
Shane Matte, 2016-05-25 08:12:05

How to remove default browser data from localstorage?

Hello. There is a store, products are stored in localstorage when ordering. Chrome enters its data there, how to remove this garbage?
30d598749cf041e6b08b0b48916ad290.jpgSolved: Yandex metric was hosting

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2016-05-25
@alexey-m-ukolov

This is not " Chromium enters its data there ", but Y.Metrika. Therefore, if you want to remove " garbage " - turn off Metrica.
Well, the right decision would, of course, be the normal storage of the basket with one object, then you won’t have to heroically overcome the difficulties created by your own hands.

N
Nicholas, 2016-05-25
@ACCNCC

<script>
localStorage.clear();
    </script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question