question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Demo Link - bower.json

See original GitHub issue

Hi,

Published a new element: https://www.webcomponents.org/element/IswPolymerElements/isw-responsive-behavior

I want the demo to be full-screen, not in an overlay, so i set up an Github Page: https://iswpolymerelements.github.io/isw-responsive-behavior/demo/index.html

Added the demo link to the bower.json:

{
  ...
  "demos": {
    "Demo": "https://iswpolymerelements.github.io/isw-responsive-behavior/demo/"
  }
}

But the demo button now opens an overlay with an error: could not fetch: https://cdn.rawgit.com/iswpolymerelements/isw-responsive-behavior/1.0.0/https://iswpolymerelements.github.io/isw-responsive-behavior/demo/index.html

Can i set the demo to an custom url? Can i set the demo to open in a new window and not in an overlay?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
samuellicommented, Apr 27, 2017

Can i set the demo to an custom url?

Not currently, but this is something we could probably support pretty easily.

Can i set the demo to open in a new window and not in an overlay?

No, and I’m not really sure what a good way to specify that behavior would be.

What if we supported absolute paths which always opened in a new tab? In a way that kind of makes sense since wc.org is no longer hosting the demo. However this means there’s no choice involved. What do you think?

0reactions
Pupixcommented, May 18, 2017

Any news on this? I’ve got the same problem. The links are read properly but the rawgit approach breaks everything.

Example link

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bower — a package manager for the web
Create a bower.json file for your package with bower init . Then save new dependencies to your bower.json with bower install PACKAGE -- ......
Read more >
Newcomers on board: Bower, npm & JSON editor! - Eclipse
Text folding on JSON Objects and Arrays; Editor extensions for custom hyperlinks, json schema validation & hover help. For installing specified dependencies ...
Read more >
Managing third-party dependencies with Bower
This is a small introduction on how to use the frontend package manager Bower to manage the library and framework dependencies of custom...
Read more >
Creating a package.json file - npm Docs
In your home directory, create a file called .npm-init.js . To add custom questions, using a text editor, add questions with the prompt...
Read more >
amazon-rekognition-custom-labels-demo/package.json - GitHub
A demo to test Custom Labels with models trained by Amazon Rekognition - amazon-rekognition-custom-labels-demo/package.json at master ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found