blob: 98c9ff92de5e8eaa233d708f5ae5a9a2b1d9f294 [file] [log] [blame]
/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
// This file adds some simple checks to match internal Google rules.
// Internally at Google it has different a implementation.
import {setLocationHref, locationReplace, locationAssign} from 'safevalues/dom';
export function setHref(loc: Location, url: string) {
setLocationHref(loc, url);
}
export function replace(loc: Location, url: string) {
locationReplace(loc, url);
}
export function assign(loc: Location, url: string) {
locationAssign(loc, url);
}