File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -424,9 +424,9 @@ $(document).ready(function() {
424
424
* On page load, selects the tab corresponding to stored Scala version.
425
425
*/
426
426
function setupScalaVersionTabs ( scalaVersionTabs ) {
427
- const BookStorage = Storage ( 'org.scala-lang.docs.scala3.book ' ) ;
427
+ const DocsPreferences = Storage ( 'org.scala-lang.docs.preferences ' ) ;
428
428
const Scala3 = 'scala-3' ;
429
- const scalaVersion = BookStorage . getPreference ( 'scalaVersion' , Scala3 ) ;
429
+ const scalaVersion = DocsPreferences . getPreference ( 'scalaVersion' , Scala3 ) ;
430
430
431
431
function activateTab ( tabs , scalaVersion ) {
432
432
// click the code tab corresponding to the preferred Scala version.
@@ -442,7 +442,7 @@ $(document).ready(function() {
442
442
const parent = $ ( this ) . parent ( ) ;
443
443
const scalaVersion = $ ( this ) . data ( 'target' ) ;
444
444
445
- BookStorage . setPreference ( 'scalaVersion' , scalaVersion , oldValue => {
445
+ DocsPreferences . setPreference ( 'scalaVersion' , scalaVersion , oldValue => {
446
446
// when we set a new scalaVersion, find scalaVersionTabs except current one
447
447
// and activate those tabs.
448
448
activateTab ( scalaVersionTabs . not ( parent ) , scalaVersion ) ;
You can’t perform that action at this time.
0 commit comments