From 7478b6723ac67cce334a94292df486431b7953be Mon Sep 17 00:00:00 2001 From: Adriano Rogowski Date: Fri, 9 Jul 2021 11:44:15 -0300 Subject: [PATCH] updating deprecated functions --- examples/chat/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chat/index.html b/examples/chat/index.html index 8a3c74aa..ff4508fb 100644 --- a/examples/chat/index.html +++ b/examples/chat/index.html @@ -166,11 +166,11 @@ function submit(e) { e.preventDefault(); - var msg = { when: Gun.time.is() }; + var msg = { when: Gun.state() }; msg.who = $('.chat__name-input').val(); if (!msg.who) { - msg.who = 'user' + Gun.text.random(3); + msg.who = 'user' + String.random(3); $('.chat__name-input').val(msg.who); }