Skip to content

Instantly share code, notes, and snippets.

@JoA-MoS
Created April 27, 2017 17:17
Show Gist options
  • Save JoA-MoS/c6476b0ab31ac671b9ca6760336e4167 to your computer and use it in GitHub Desktop.
Save JoA-MoS/c6476b0ab31ac671b9ca6760336e4167 to your computer and use it in GitHub Desktop.
Some Code from sharepoint offline.js that determines the SyncClient
function useNGSCSyncDialog(a) {
    if (!Boolean(a) || !Boolean(_spPageContextInfo))
        return false;
    var b = typeof a.ListTemplateType != "undefined" && a.ListTemplateType == 700;
    return _spPageContextInfo.isSPO ? b ? Flighting.VariantConfiguration.IsExpFeatureClientEnabled(569) || _spPageContextInfo.showNGSCDialogForSyncOnODB : !(window.OffSwitch == null || OffSwitch.IsActive("92139EC2-6BC6-4DE5-8F94-AFBF3DB3E687")) && _spPageContextInfo.showNGSCDialogForSyncOnTS : false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment