url2data

command module
v0.0.0-...-3f1a849 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

README

1. Just Deploy the same on Heroku

Deploy

2. Paste PORT to Heroku

Go to heroku dashboard, go to "Setting" -> "Config Variables".

  • Add "Config Vars"
  • Name -> "PORT"
  • Value use 80.

Use

const addScript = (src) => {
  var elem = document.createElement("script");
  elem.src = src;
  document.head.appendChild(elem);
}

const getData = (data) => {
  conosle.log(data)
}

addScript("https://APP_ADDRESS.herokuapp.com/data?url=http://habr.ru&callback=getData")

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL