Skip to content

Commit

Permalink
added checkes for all.min css files and set the library version numbe…
Browse files Browse the repository at this point in the history
…r to 0.0.0
  • Loading branch information
paulosabayomi committed Dec 10, 2023
1 parent 79996c8 commit b69714e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custup",
"version": "1.0.0",
"version": "0.0.0",
"description": "Highly customisable file upload library",
"main": "src/custup.min.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/custup.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default class CustUp extends CustUpCore {
</div>`;
this.options.allowed_tools = null;

if (document.querySelector("[href*='resumeUploaderUI.']") === null) {
if (document.querySelector("[href*='all.min.']") === null && document.querySelector("[href*='resumeUploaderUI.']") === null) {
console.warn(this.libraryName + ": Please include the resumeUploaderUI css file")
}
}
Expand Down Expand Up @@ -202,7 +202,7 @@ export default class CustUp extends CustUpCore {
defaultUIInnerContentWrapper.appendChild(defaultUIInnerContent)
this.options._custupDefaultUploadSentence = defaultUIInnerContentWrapper.innerHTML;

if (document.querySelector("[href*='bare.']") === null) {
if (document.querySelector("[href*='all.min.']") === null && document.querySelector("[href*='bare.']") === null) {
console.warn(this.libraryName + ": Please include the bare css file")
}
}
Expand Down Expand Up @@ -371,7 +371,7 @@ export default class CustUp extends CustUpCore {
}
});

if (document.querySelector("[href*='detached.']") === null) {
if (document.querySelector("[href*='all.min.']") === null && document.querySelector("[href*='detached.']") === null) {
console.warn(this.libraryName + ": Please include the detached css file")
}
}
Expand Down Expand Up @@ -439,7 +439,7 @@ export default class CustUp extends CustUpCore {
this._custupFooterEl.querySelector('.inner').innerHTML = ''
});

if (document.querySelector("[href*='profilePicture.']") === null) {
if (document.querySelector("[href*='all.min.']") === null && document.querySelector("[href*='profilePicture.']") === null) {
console.warn(this.libraryName + ": Please include the profilePicture css file")
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/custup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b69714e

Please sign in to comment.