Skip to content

[BUG] Fix "javascript:" warning #10

@SethCram

Description

@SethCram

Describe the bug

  • Fix "javascript:" warning

To Reproduce
Steps to reproduce the behavior:

  1. Scroll down to the 2D adventure game
  2. Click Product
  3. Click Product again
  4. Notice how the btn uses an href that does nothing
  5. Notice the warning in the console that this won't be allowed later

Expected behavior

  • Warning shouldn't be present but functionality should be

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox

Additional context

  • Will need to restructure code somehow
  • No reliable way to make an href do nothing besides js injection

Development

  • use a button instead of an href if no hashcode navigated to
    • html a & button elements styled differently
      • so replaced a element with button element results in weird looking buttons
      • tried to make styling the same thru css changes but still different for some reason

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions