Comments (5)
Hey, @TheSeg! 👋🏼
Hmm. Not getting this on my end, but this looks to be a good find!
The package is listed on the main_pi.html file. It should be on line 16: <script src="https://unpkg.com/json5@^2.0.0/dist/index.min.js"></script>
I happened to miss that there was an updated version of JSON5, can you switch that line to https://www.unpkg.com/browse/[email protected]/
& see if that resolves the issue?
After making the changes make sure to save the script, & restart the Stream Deck Software!
Let me know how that works out!
from streamdeck-shortcuts.
There's a number of problems with that HTML file, but since it's not in the repo, I can't do a PR.
First the triage. The Sentry script line isn't properly closed and missing the closing >
after crossorigin
. What actually fixed the issue was a less restrictive semantic version definition as ^2.0.0
. I used ~2
as that should catch patches while still giving the level of support expected from a third-party. There's weirdness that unpkg has with redirects which may be a contributing factor.
<script
src="https://browser.sentry-cdn.com/7.13.0/bundle.min.js"
integrity="sha384-r+KUPXXgkLQFWmyqriU1/6I8hKYt0wW+3XTsbVK75r6hlPjAg8TNYgEdyCuq+41e"
crossorigin="anonymous">
</script>
<script
src="https://unpkg.com/json5@~2/dist/index.min.js"
>
</script>
But the question I have: Why do you need the third party JSON5 library in the first place? As a test I did the standard JSON and things worked fine. I confess I haven't deep-dived with testing, but what's the point of introducing a third party library in the first place?
from streamdeck-shortcuts.
Hey, @TheSeg!
Thanks for the swift reply.
Some user's with larger libraries were getting issues, parsing the JSON with italics & whatnot. From some research, it seemed that JSON5 handled these seamlessly, & was an easy fix.
I could probably switch back to standard JSON, with better handling of edge cases, but plan on saving that, for the forthcoming rewrite, which will happen when I find some more time! 😅
I had no idea that we could pass in ~2
! That's a neat little trick!!!
PR's are very much welcome, as I'm not great with JS/HMTL/CSS! The front end code is located in this repo.
from streamdeck-shortcuts.
Is there a reason these have to be separate repos?
Also, I'm unable to open this project properly in Xcode. There's no *.xcodeproj
or similar.
from streamdeck-shortcuts.
Hey, @TheSeg!
I went ahead & shared the project file. Let me know if you're able to open it up now.
Also, can you check under the Signing area, & tell me what you're seeing under the Team id & Certificate sections? I was hesitant to share this file, as there's account information listed here. Should be scrubbed, but if not, please let me know! 😄
As for including the other repo in the Xcode project, I'll take a look into that this weekend.
Would you like to submit a PR for the JS, or shall I go ahead & push the changes? Would love to give you credit for the assistance.
I truly appreciate getting some outside feedback into the project, as this is all a learning experience for me. Many thanks!
from streamdeck-shortcuts.
Related Issues (20)
- Shortcuts don't work for me in Stream Deck HOT 1
- Getting yellow error icon majority of the time I run shortcuts from Stream Deck HOT 23
- Error Kilo-one happens all the time. HOT 21
- Join Zoom Meeting Shortcut Doesn't Work HOT 5
- Looking for error HOT 1
- Folder... Loading HOT 19
- Shortcuts stopped working after latest update HOT 4
- Shortcut Fails Until I Edit the Shortcut HOT 7
- StreamDeck-Shortcuts consumes 100% CPU time HOT 8
- Plugin unresponsive after installation HOT 5
- Sentinelite background added to buttons on press HOT 4
- Error at installation step HOT 4
- Zoom Cuts Updates HOT 1
- Shortcut plugins in Multi-action lists stops working after page switching HOT 2
- Multi-Action Support Bug HOT 7
- Shortcuts never load HOT 3
- Application Isn't Responsive Depending on DNS/VPN/PiHole connection. HOT 2
- Kilo-One HOT 1
- the plugin does not show in Stream Deck Store HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamdeck-shortcuts.