Created
June 5, 2017 21:59
-
-
Save JoA-MoS/c4783e9c306449c91d70ead1a67a4827 to your computer and use it in GitHub Desktop.
Force new One Drive Sync Client rather groove
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_spPageContextInfo.showNGSCDialogForSyncOnTS = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function forceNewSync() { | |
document.getElementById('QCB1_Button3').addEventListener('click', function () { | |
_spPageContextInfo.showNGSCDialogForSyncOnTS = true; | |
}); | |
} | |
window.onload = forceNewSync; | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!(window.OffSwitch == null || OffSwitch.IsActive("92139EC2-6BC6-4DE5-8F94-AFBF3DB3E687")) && _spPageContextInfo.showNGSCDialogForSyncOnTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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