addExtensionFilter

Adds extension, files of which will be ignored while the documents loading.

Syntax

addExtensionFilter = function(aExtension);

Parameters

  • aExtension
    • type: string
    • functions: filtered extension

Notes

  • The following filters are used by default:
    1. .gif
    2. .jpeg
    3. .jpg
    4. .png
    5. .tiff
  • Only downloaded from the primary domain files are filtered.

Примеры

  1. //Forbid to download "jpeg" files
    addExtensionFilter('.jpeg');