Skip to content

Commit 5caa492

Browse files
authored
Update jquery.fontselect.js
1 parent e1a171e commit 5caa492

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

jquery.fontselect.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,10 @@
390390

391391
Fontselect.prototype.addFontLink = function(font){
392392

393-
var compressedString = font.replace(/(.)(?=.*\1)/g, "");
394-
var link = this.options.api + font;
393+
var link = this.options.api + font + '&text=' + font;
395394

396395
if ($("link[href*='" + font + "']").length === 0){
397-
$('link:last').after('<link href="' + link + '&text=' + compressedString + '" rel="stylesheet" type="text/css">');
396+
$('link:last').after('<link href="' + link + '" rel="stylesheet" type="text/css">');
398397
}
399398
};
400399

0 commit comments

Comments
 (0)