mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reconcile apphost
This commit is contained in:
parent
6f1cdf9329
commit
1fcc7ed63e
27 changed files with 8058 additions and 194 deletions
31
dashboard-ui/bower_components/fingerprintjs2/flash/FontList.as
vendored
Normal file
31
dashboard-ui/bower_components/fingerprintjs2/flash/FontList.as
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
package {
|
||||
import flash.display.Sprite;
|
||||
import flash.display.LoaderInfo;
|
||||
import flash.text.Font;
|
||||
import flash.external.ExternalInterface;
|
||||
|
||||
public class FontList extends Sprite {
|
||||
|
||||
public function FontList() {
|
||||
var params:Object = loadParams();
|
||||
loadExternalInterface(params);
|
||||
}
|
||||
|
||||
private function loadParams():Object {
|
||||
return LoaderInfo(this.root.loaderInfo).parameters;
|
||||
}
|
||||
|
||||
private function loadExternalInterface(params:Object):void {
|
||||
ExternalInterface.call(params.onReady, fonts());
|
||||
}
|
||||
|
||||
private function fonts():Array {
|
||||
var fontNames:Array = [];
|
||||
for each (var font:Font in Font.enumerateFonts(true) )
|
||||
{
|
||||
fontNames.push(font.fontName);
|
||||
}
|
||||
return fontNames;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue