Skip to content

penPlus.isIFrame is backwards #39

@LegoBrainBiker

Description

@LegoBrainBiker
 //Remove the export button if we are in an IFrame
  if (window.location === window.parent.location) {
    penPlus.isIFrame = true;
    fileDropdown.removeChild(importButton);
    fileDropdown.removeChild(exportButton);
  }

should be

 //Remove the export button if we are not in an IFrame
  if (window.location === window.parent.location) {
    penPlus.isIFrame = false;
    fileDropdown.removeChild(importButton);
    fileDropdown.removeChild(exportButton);
  }
else {
    penPlus.isIFrame = true;
}

although penPlus.isIFrame is never used, and everything works fine currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions