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.

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>
				<style dangerouslySetInnerHTML={this.themeColor(color)}/>
				<img src={network.fixURL(img)} crossOrigin="anonymous" onLoad={(e) => this.prepareCollectionColor(e,this)} style={{display:"none"}} />
			</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;
		}
	}