SkepticMystic / graph-analysis

Analyse the structure of your Obsidian graph using various analysis techniques
GNU General Public License v3.0
413 stars 19 forks source link

Can't click on links in tab #10

Closed phlind closed 3 years ago

phlind commented 3 years ago

In version 0.0.30 clicking on links in the plugin tab doesn't actually open the note.

The console says this:

utils.js:205 Uncaught (in promise) TypeError: event.getModifierState is not a function
    at Object.openOrSwitch (eval at <anonymous> (app.js:1), <anonymous>:3066:45)
    at Array.click_handler (eval at <anonymous> (app.js:1), <anonymous>:4320:44)
    at HTMLTableCellElement.click_handler (eval at <anonymous> (app.js:1), <anonymous>:4010:35)
SkepticMystic commented 3 years ago

Huh ok... I switched over to the obsidian-community-lib for that function. The code is exactly the same, and I don't get any errors in the package 🤷🏼 What OS are you on? Do you just left click the link?

SkepticMystic commented 3 years ago

Hmmm ok, I get the same error. I'm not sure what's happening here. I'll have to dig around. For now, I'll revert back to the previous behaviour

SkepticMystic commented 3 years ago

@phibr0, I'm not sure if you know what's happening here. It's saying this isn't a function, but it is: image

SkepticMystic commented 3 years ago

lol, I think I see the issue! Let me see if it works

SkepticMystic commented 3 years ago

@phlind this should be fixed in 0.0.31. Phibr0, sorry for the ping! The issue was a mistake on my side. But please see the issue I pinged you on in the community-lib repo :)