isWeb static method

bool isWeb()

Implementation

static bool isWeb() {
  try {
    return isApp() || isDesktop();
  } catch (e) {
    return true;
  }
}