@nextcloud/viewer
    Preparing search index...

    Function canCompare

    • Whether comparing two versions of a file is worth offering.

      For a caller deciding whether to show a "Compare" action, like the versions tab of the Files sidebar: the file has to be viewable, and the handler the viewer would open it with has to say so with canCompare.

      Parameters

      • node: INode

        The file to compare versions of

      Returns boolean