Skip to main content

eye_dropper_open

Function eye_dropper_open 

Source
pub(crate) fn eye_dropper_open(
    it: &mut Interp,
    _this: Value,
    _a: &[Value],
) -> Result<Value, Value>
Expand description

EyeDropper.prototype.open()。実際のピッカー UI が無いため、ユーザーが ピッカーをキャンセルした場合と同じ仕様どおりの AbortError で常に拒否 する(色を拾えていないのに成功を偽装しない)。