The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.19-0ubuntu0.18.04.2 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 10-16-2019, 12:54 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting localstorage values
07-18-2019, 10:04 AM
Post: #1
Setting localstorage values
Hello all
I am a novice to the WPT and I would like to know if there is a way to set localstorage in the browser session that loads the page
Right now I have the script like this but it is not taking any effect


setCookie xxx.xxx.com split_tcv=200
setCookie xxx.xxx.com __vst=d991880c-d603-41cb-b4ff-d6d11c8fd8b5
exec localStorage.setItem('recently_viewed', '1130217481,2267432533,1497137951,2441643263,1581060853,2267909440');
navigate https://XXX.XXX.com

I also tried
setCookie xxx.xxx.com split_tcv=200
setCookie xxx.xxx.com __vst=d991880c-d603-41cb-b4ff-d6d11c8fd8b5
exec window.localStorage.setItem('recently_viewed', '1130217481,2267432533,1497137951,2441643263,1581060853,2267909440');
navigate https://XXX.XXX.com
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Setting localstorage values - avaidhy - 07-18-2019 10:04 AM
RE: Setting localstorage values - pmeenan - 07-19-2019, 12:00 AM
RE: Setting localstorage values - avaidhy - 07-19-2019, 10:01 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)