mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-773: Consider Pickr available only if initialization has completed.
In previous versions of Pickr, catching exceptions during Pickr creation was sufficient to detect whether Pickr can be used with the current browser. This is no longer the case, and we must instead rely on the lack of an "init" event.
This commit is contained in:
@@ -202,7 +202,7 @@ angular.module('form').provider('colorPickerService', function colorPickerServic
|
|||||||
* selectColor(), false otherwise.
|
* selectColor(), false otherwise.
|
||||||
*/
|
*/
|
||||||
service.isAvailable = function isAvailable() {
|
service.isAvailable = function isAvailable() {
|
||||||
return !!pickr;
|
return pickrInitComplete;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user