Skip to content

Commit

Permalink
Merge pull request #5 from ymlluo/dev
Browse files Browse the repository at this point in the history
fix Cannot assign to "n" because it is a constant
  • Loading branch information
ymlluo authored Apr 16, 2023
2 parents e67a751 + 14ff912 commit a5bbf9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ymlluo/bs5dialog",
"version": "1.0.2",
"version": "1.0.3",
"description": "bs5dialog is a library for creating Bootstrap 5 dialogs. It provides a set of components for creating alerts, prompts, confirms, messages, toasts, tabs, spinners, and offcanvas dialogs.",
"main": "dist/bs5dialog.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/components/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function loading(element = document.body, options = {}) {

let evt = event && event.target ? event.target : null;

const targetElement = getTargetElement(element);
let targetElement = getTargetElement(element);
if (!targetElement) {
console.error("target element not found");
return;
Expand All @@ -45,9 +45,9 @@ export function loading(element = document.body, options = {}) {
}
targetElement.style.position = "relative";

const targetRect = targetElement.getBoundingClientRect();
let targetRect = targetElement.getBoundingClientRect();

const overlay = document.createElement("div");
let overlay = document.createElement("div");
overlay.style.position = "absolute";
overlay.style.top = 0;
overlay.style.left = 0;
Expand Down

0 comments on commit a5bbf9e

Please sign in to comment.