Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

to close #260 error on desktop environment #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/addtohomescreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,11 @@ ath.Class.prototype = {
},

show: function (force) {
// don not start if session not exist
if(!this.session) {
return
}

// in autostart mode wait for the document to be ready
if ( this.options.autostart && !_DOMReady ) {
setTimeout(this.show.bind(this), 50);
Expand Down