From 4d54d5c4557c1f30c3e14bfc15d167131baeced8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 22 Dec 2023 12:49:22 +0100 Subject: [PATCH] :sparkles: Extend GCL Deferred to work with promesa abstractions --- frontend/src/app/config.cljs | 1 + frontend/src/app/util/extends.cljs | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 frontend/src/app/util/extends.cljs diff --git a/frontend/src/app/config.cljs b/frontend/src/app/config.cljs index 46546cd61..784386a0b 100644 --- a/frontend/src/app/config.cljs +++ b/frontend/src/app/config.cljs @@ -11,6 +11,7 @@ [app.common.uri :as u] [app.common.version :as v] [app.util.avatars :as avatars] + [app.util.extends] [app.util.globals :refer [global location]] [app.util.navigator :as nav] [app.util.object :as obj] diff --git a/frontend/src/app/util/extends.cljs b/frontend/src/app/util/extends.cljs new file mode 100644 index 000000000..4cec0733f --- /dev/null +++ b/frontend/src/app/util/extends.cljs @@ -0,0 +1,14 @@ +;; This Source Code Form is subject to the terms of the Mozilla Public +;; License, v. 2.0. If a copy of the MPL was not distributed with this +;; file, You can obtain one at http://mozilla.org/MPL/2.0/. +;; +;; Copyright (c) KALEIDOS INC + +(ns app.util.extends + "A dummy namespace for closure library and other global objects + extensions" + (:require + [promesa.impl :as pi]) + (:import goog.async.Deferred)) + +(pi/extend-promise! Deferred)