Skip to content

Commit

Permalink
Merge pull request #13 from mh7777777/master
Browse files Browse the repository at this point in the history
navigateToSocialWall backward compatibility.
  • Loading branch information
hariszupcevic authored Mar 15, 2021
2 parents 9ec7636 + 566a33e commit 7453d46
Show file tree
Hide file tree
Showing 3 changed files with 10,109 additions and 528 deletions.
2 changes: 2 additions & 0 deletions control/content/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
editor.on("load", function () {
buildfire.datastore.get(function (err, obj) {
if (!obj || !obj.data) return;
// This way, we will keep old instances to use PSW navigate by default (so we don't break backward compatibility) and new instances to navigate to CW by default.
if (!Object.keys(obj.data).length) obj.data.navigateToCwByDefault = true;
if (!obj.data.text) obj.data.text = '';

data = obj.data;
Expand Down
Loading

0 comments on commit 7453d46

Please sign in to comment.