UNPKG

@akylas/nativescript-inappbrowser

Version:
23 lines 642 B
import { Color } from "@nativescript/core"; export function parseColor(color) { if (color && !(color instanceof Color)) { return new Color(color); } return color; } export function tryParseColor(colorString, errorMessage) { try { return parseColor(colorString); } catch (error) { throw new Error(`${errorMessage} ${colorString}: ${error.message}`); } } export function log(message, ...optionalParams) { const nglog = global.__nslog; if (nglog) { nglog(message, ...optionalParams); } console.log(message, ...optionalParams); } //# sourceMappingURL=utils.common.js.map