PP.Ui.getRetinaUrl(url: String);
url. Address.
The getRetinaUrl method adds the .retina prefix to sent text.
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: