Skip to content

Impossible to disable server search #8

Open
nickolasjadams/link-autocomplete
#1
@4rtamis

Description

@4rtamis

Hi, thanks a lot for this tool !
While trying to customize the link-autocomplete tool, I wanted to use it without server endpoint.
It appears that, when you do not provide an endpoint in the config, the tool still considers that there is actually an endpoint.

I looked at the code carefully and there is a very simple fix:
in the file src/index.js, the method isServerEnabled() lacks the operator get.

This is why this kind of expression this.isServerEnabled ? DICTIONARY.pasteOrSearch : DICTIONARY.pasteALink always picks DICTIONARY.pasteOrSearch.

I hope this can be useful.
Cheers !

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