Skip to content

Uncaught ReferenceError: _ref2 is not defined #25

Description

@LorhanSohaky
submitFlag() {
      const { flag, token } = this.$data;
      const info = this.info;
      const local = { owner: "user", repository: "repo" };
      const upstream = {
        owner: config.owner,
        repository: config.submissionsRepo
      };

      this.$worker
        .run(
          async (flag, info, token, local, upstream) => {
            const NIZKCTF = require("../services/nizkctf");
            const nizkctf = new NIZKCTF(token, local, upstream);

            return await nizkctf.submitFlag(flag, info);
          },
          [flag, info, token, local, upstream]
        )
        .then(r => console.log(r))
        .catch(r => console.log("Error", r));
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions