-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
// Instance the tour | ||
var tour = new Tour({ | ||
orphan: true, | ||
backdrop: true, | ||
steps: [ | ||
{ | ||
element: "#my-element", | ||
title: "Title of my step", | ||
content: "Content of my step" | ||
title: "Welcome To Mind The Word", | ||
content: "This tour will walk through the extension.", | ||
}, | ||
{ | ||
element: "#my-element", | ||
title: "Title of my step", | ||
content: "Content of my step" | ||
} | ||
]}); | ||
|
||
// Initialize the tour | ||
tour.init(); | ||
|
||
// Start the tour | ||
tour.start(true); | ||
chrome.storage.local.get(['newInstallUpdate'], (result) => { | ||
if(result.newInstallUpdate){ | ||
tour.restart(true); | ||
} | ||
chrome.storage.local.set({ | ||
'newInstallUpdate': false | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters