mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Update utils.js
This commit is contained in:
parent
170617d457
commit
b67a236657
1 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
|
||||
Utils = {
|
||||
// Create Utils as a global object and export it
|
||||
export const Utils = {
|
||||
setBackgroundImage(url) {
|
||||
const currentBoard = Utils.getCurrentBoard();
|
||||
if (currentBoard.backgroundImageURL !== undefined) {
|
||||
|
|
@ -591,6 +592,9 @@ Utils = {
|
|||
},
|
||||
};
|
||||
|
||||
// Make Utils available globally for legacy code
|
||||
window.Utils = Utils;
|
||||
|
||||
// A simple tracker dependency that we invalidate every time the window is
|
||||
// resized. This is used to reactively re-calculate the popup position in case
|
||||
// of a window resize. This is the equivalent of a "Signal" in some other
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue