Skip to content

Instantly share code, notes, and snippets.

@JoA-MoS
Created June 5, 2017 21:59
Show Gist options
  • Save JoA-MoS/c4783e9c306449c91d70ead1a67a4827 to your computer and use it in GitHub Desktop.
Save JoA-MoS/c4783e9c306449c91d70ead1a67a4827 to your computer and use it in GitHub Desktop.
Force new One Drive Sync Client rather groove
_spPageContextInfo.showNGSCDialogForSyncOnTS = true;
<script type="text/javascript">
    function forceNewSync() {
        document.getElementById('QCB1_Button3').addEventListener('click', function () {
            _spPageContextInfo.showNGSCDialogForSyncOnTS = true;
        });
    }
    window.onload = forceNewSync;
</script>
 !(window.OffSwitch == null || OffSwitch.IsActive("92139EC2-6BC6-4DE5-8F94-AFBF3DB3E687")) && _spPageContextInfo.showNGSCDialogForSyncOnTS 
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