PP.Ui.getRetinaUrl

Syntax

PP.Ui.getRetinaUrl(url: String);

Parameters

url. Address.

Description

The getRetinaUrl method adds the .retina prefix to sent text.

Example

To execute the example, it is required to have link to PP.js script file. The following code is to be executed from the browser console. Get a new address with the .retina prefix:

console.log("New address: " + PP.Ui.getRetinaUrl("data/file"));

As a result console displays a new address:

New adress: retina.data/file

 

See also:

PP.Ui