Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash When Dev Tools Open on non-Vue Application #551

Closed
mlturner88 opened this issue Jan 24, 2018 · 1 comment
Closed

Crash When Dev Tools Open on non-Vue Application #551

mlturner88 opened this issue Jan 24, 2018 · 1 comment

Comments

@mlturner88
Copy link

Version

4.1.0

Browser and OS info

Chrome v64.0.3282.119 (64-bit) / Windows 10

Steps to reproduce

  1. Navigate to non-Vue application with dev tools enabled (e.g. msn.com)
  2. Open Chrome developer tools for site
  3. Right-click an element on the page

What is expected?

Right-click context menu appears as normal.

What is actually happening?

Developer Tools are hitting an exception in the Vue dev tools extension code. If you continue the breakpoint the context menu does appear.

Console Error

Uncaught ReferenceError: o is not defined
    at HTMLDocument.document.addEventListener.t (<anonymous>:1:784)

Code Where Error Occurs

document.addEventListener("contextmenu", t=>{
        const n = t.target;
        if (n) {
            const t = Object(o.a)(n);
            if (t)
                return e.__VUE_DEVTOOLS_CONTEXT_MENU_HAS_TARGET__ = !0,
                void (e.__VUE_DEVTOOLS_CONTEXT_MENU_TARGET__ = t)
        }
        e.__VUE_DEVTOOLS_CONTEXT_MENU_HAS_TARGET__ = null,
        e.__VUE_DEVTOOLS_CONTEXT_MENU_TARGET__ = null
    }
@Akryum
Copy link
Member

Akryum commented Jan 24, 2018

Duplicate of #514

@Akryum Akryum marked this as a duplicate of #514 Jan 24, 2018
@Akryum Akryum closed this as completed Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants