How to use the network.fixURL function in network

To help you get started, we’ve selected a few network examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github raindropio / extensions / src / co / collection / themeColor.jsx View on Github external
render() {
		var color, img;
		try{
			color = this.props.collection.color;
			img = (this.props.collection.cover||[])[0];
		}catch(e){}

		if (!img)
			return null;

		return (
			<div>
				</div>
github raindropio / extensions / src / routes / start.jsx View on Github external
case "cant_insert_bookmark":
			case "cant_get_url":
				window.location.hash = '#/error/savebookmark'
			break;

			case "forbidden_url":
				window.location.hash = "#/forbidden";
			break;

			case "is_raindrop_url":
				window.location.hash = "#/forbidden?raindrop=1";
			break;

			case "newtab_url":
				extensionHelpers.openTab(network.fixURL('/app'))
			break;

			default:
				window.location.hash = '#/error/default?e='+encodeURIComponent(e)
			break;
		}
	}