diff --git a/lib/App.ts b/lib/App.ts index 3f18f6d1..ccc35d82 100644 --- a/lib/App.ts +++ b/lib/App.ts @@ -784,10 +784,18 @@ module TDev.RT { //? Restarts the app and pops a restart dialog export function restart(message: string, r: ResumeCtx): void { var rt = r.rt; + + if (Cloud.isRestricted()) { + rt.stopAsync() + .then(() => rt.rerunAsync()) + .done(); + return; + } + var score = Bazaar.cachedScore(rt); var scriptId = rt.currentScriptId; - rt.stopAsync().done(() => { + rt.stopAsync().done(() => { var m = new ModalDialog(); m.add(div('wall-dialog-huge wall-dialog-text-center', message || lf("try again!"))); if (score > 0)