Skip to content

Commit

Permalink
wait longer for webpack to load
Browse files Browse the repository at this point in the history
  • Loading branch information
SammCheese committed Dec 17, 2022
1 parent 3b60ccc commit ce53651
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"discordID": "372148345894076416",
"github": "SammCheese"
},
"version": "1.0.0",
"version": "1.0.1",
"updater": {
"type": "github",
"id": "SammCheese/invisible-chat"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Invisible Chat",
"version": "1.0.0",
"name": "invisible-chat",
"version": "1.0.1",
"description": "Encrypt your Discord Messages",
"engines": {
"node": ">=14.0.0"
Expand Down
4 changes: 3 additions & 1 deletion src/components/DecryptionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ let Button: any;
setTimeout(() => {
TextInput = webpack.getByProps(["defaultProps", "Sizes", "contextType"]);
Button = webpack.getByProps(["Hovers", "Looks", "Sizes"]);
}, 1500);
}, 3500);

export function buildDecModal(msg: any) {
let secret: string = msg?.content;
let password: string;
if (!TextInput || !Button) return;
if (!ModalRoot || !ModalContent || !ModalHeader || !ModalFooter) return;
const s = openModal!((props = msg) => (
<ModalRoot {...props} size={ModalSize.MEDIUM}>
<ModalHeader>
Expand Down
4 changes: 3 additions & 1 deletion src/components/EncryptionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ let Button: any;
setTimeout(() => {
TextInput = webpack.getByProps(["defaultProps", "Sizes", "contextType"]);
Button = webpack.getByProps(["Hovers", "Looks", "Sizes"]);
}, 1500);
}, 3500);

export function buildEncModal() {
let secret: string;
let cover: string;
let password: string;
if (!TextInput || !Button) return;
if (!ModalRoot || !ModalContent || !ModalHeader || !ModalFooter) return;
const s = openModal!((props) => (
<ModalRoot {...props} size={ModalSize.MEDIUM}>
<ModalHeader>
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */

/* Language and Environment */
"target": "es2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
"jsx": "react" /* Specify what JSX code is generated. */,
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
Expand Down

0 comments on commit ce53651

Please sign in to comment.