You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 88eed7f
Browse filesBrowse the repository at this point in the historyBrowse files
// Safari, in Private Browsing Mode, looks like it supports localStorage but all calls to setItem
176
-
// throw QuotaExceededError. We're going to detect this and just silently drop any calls to setItem
177
-
// to avoid the entire page breaking, without having to do a check at each usage of Storage.
178
-
if(typeoflocalStorage==='object'){
179
-
try{
180
-
localStorage.setItem('localStorage','1');
181
-
localStorage.removeItem('localStorage');
182
-
}catch(e){
183
-
(Storageasany/* TS too strict */).prototype._setItem=Storage.prototype.setItem;
184
-
Storage.prototype.setItem=function(){};
185
-
alert('Your web browser does not support storing settings locally. In Safari, the most common cause of this is using "Private Browsing Mode". Some settings may not save or some features may not work properly for you.');
// Safari, in Private Browsing Mode, looks like it supports localStorage but all calls to setItem
832
+
// throw QuotaExceededError. We're going to detect this and just silently drop any calls to setItem
833
+
// to avoid the entire page breaking, without having to do a check at each usage of Storage.
834
+
if(typeoflocalStorage==='object'){
835
+
try{
836
+
localStorage.setItem('localStorage','1');
837
+
localStorage.removeItem('localStorage');
838
+
}catch(e){
839
+
(Storageasany/* TS too strict */).prototype._setItem=Storage.prototype.setItem;
840
+
Storage.prototype.setItem=function(){};
841
+
alert('Your web browser does not support storing settings locally. In Safari, the most common cause of this is using "Private Browsing Mode". Some features may not work properly for you.');
842
+
}
843
+
}
844
+
845
+
852
846
// first initialize options from HTML LocalStorage. very important
853
847
// that this code runs FIRST so that options get overridden by query
854
848
// string options and anything else the user wants to override with.
@@ -907,7 +901,7 @@ function genericOptFrontendReady(params) {
// deployed on 2015-03-12, taken down on 2015-03-16
712
-
//$("#surveyHeader").html('<a href="http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo.html?session=fvkqv4423mcxr" target="_blank">Click here to help our research</a> by collaboratively annotating<br/>a piece of Python code to create a tutorial for beginners.');
713
-
//$("#surveyHeader").css('font-size', '12pt');
714
-
715
-
// run this AFTER genericOptFrontendReady so that opt_uuid is already
0 commit comments