! Copyright (C) 2009 Doug Coleman.
-! See http://factorcode.org/license.txt for BSD license.
+! See https://factorcode.org/license.txt for BSD license.
USING: accessors combinators.short-circuit http.client
images.loader images.loader.private images.viewer io.pathnames
kernel namespaces opengl present sequences strings urls ;
gl-scale-factor get-global [ 2.0 = >>2x? ] when* ;
M: string set-image
- dup { [ "http://" head? ] [ "https://" head? ] } 1||
+ dup { [ "https://" head? ] [ "https://" head? ] } 1||
[ load-http-image ] [ load-image ] if >>image ;
M: url set-image