(resize-example {:keys [context], :as game})

Source

(defn resize-example [{:keys [context], :as game}] #?(:cljs (let [display-width context.canvas.clientWidth display-height context.canvas.clientHeight] (when (or (not= context.canvas.width display-width) (not= context.canvas.height display-height)) (set! context.canvas.width display-width) (set! context.canvas.height display-height)))))