function addPath(immSet, urlObj, mode) {
    return immSet.add(
        mode === "snippet"
            ? urlObj.href
            : urlObj.path
    );
}
If snippet mode, add the full URL
if server/proxy, add JUST the path
@param immSet
@param urlObj
@param mode
@returns {Set}