Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session storage not defined #1

Open
dalipkumar703 opened this issue Jul 10, 2017 · 10 comments
Open

session storage not defined #1

dalipkumar703 opened this issue Jul 10, 2017 · 10 comments

Comments

@dalipkumar703
Copy link

ReferenceError: sessionStorage is not defined
W20170710-11:03:49.473(5.5)? (STDERR) at Object.sChat.init (packages/schat:client-core/client-core.js:31:30)
W20170710-11:03:49.474(5.5)? (STDERR) at server/main.js:5:9
W20170710-11:03:49.475(5.5)? (STDERR) at Function.time (/home/dalip/Desktop/web-chat/.meteor/local/build/programs/server/profile.js:309:28)
W20170710-11:03:49.476(5.5)? (STDERR) at /home/dalip/Desktop/web-chat/.meteor/local/build/programs/server/boot.js:347:13
W20170710-11:03:49.478(5.5)? (STDERR) at /home/dalip/Desktop/web-chat/.meteor/local/build/programs/server/boot.js:388:5
W20170710-11:03:49.479(5.5)? (STDERR) at Function.run (/home/dalip/Desktop/web-chat/.meteor/local/build/programs/server/profile.js:510:12)
W20170710-11:03:49.480(5.5)? (STDERR) at /home/dalip/Desktop/web-chat/.meteor/local/build/programs/server/boot.js:386:11

@juliancwirko
Copy link
Owner

Hi, try now, version 1.2.1

@dalipkumar703
Copy link
Author

Thanks for response :)
But it showing same error again.

@juliancwirko
Copy link
Owner

sorry, I thought that this is related to the meteor's session package ;) But this is related to native sessionStorage. It should run only on the client side, this is why there is a bug. I need to test it because I haven't used it very long.

@dalipkumar703
Copy link
Author

OK Julian. Thanks
I will wait ...

@juliancwirko
Copy link
Owner

Everything seems to work on my side. You need to be sure that you run all the configuration on the client side. I mean this (example):

Meteor.startup(function () {
    sChat.init('JMSZtbT2RdNrPYYRi', {
        ssl: true,
        welcomeMessage: 'Hi, how can I help you?',
        hostName: 'www.simplechat.support',
        labels: {
            sendPlaceholder: 'Send the message...',
            headerTitle: 'Welcome on my website!'
        }
    });
});

@dalipkumar703
Copy link
Author

Great julian. It's working correctly .Actually i added startup code in server side. Thanks a lot . One more thing is it necessary to put hostname (SimpleChat.Support) or we can put something else.

@juliancwirko
Copy link
Owner

If you'll host your own SimpleChat instance you need to change it to your hostname. Otherwise you need to have an account on simplechat.support and connect your client app to that. Check out docs:

@dalipkumar703
Copy link
Author

Ok. How to remove powered by www.simplechat.support :) ?

@juliancwirko
Copy link
Owner

For now there isn't a simple way because this is a package designed
specially for hosted SimpleChat.Support app. But you can do that.
You would need to clone https://github.com/juliancwirko/meteor-schat-client-blaze package into packages folder and then remove this section: https://github.com/juliancwirko/meteor-schat-client-blaze/blob/master/client-blaze.html#L22

@dalipkumar703
Copy link
Author

Ok julian. Thanks a lot :) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants